Skip to content

Commit

Permalink
Rename workspace-beta path to workbench
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Schultz committed Oct 28, 2020
1 parent 2a85679 commit 3516164
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions silk-workbench/conf/routes
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
GET / controllers.Workbench.index
# TODO: remove this route later
GET /workspace-beta controllers.Workbench.reactUIRoot()
GET /workspace-beta/*x controllers.Workbench.reactUI(x: String)

GET /workbench controllers.Workbench.reactUIRoot()
GET /workbench/*x controllers.Workbench.reactUI(x: String)

# Redirect call to individual modules
-> /core core.Routes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
}
@if(ProductionConfig.betaWorkspaceSwitchEnabled) {
<span>
<a id="beta-workspace-switch" href="@config.baseUrl/workspace-beta" class="mdl-button mdl-js-button mdl-button--raised">New workspace UI (beta)</a>
<a id="beta-workspace-switch" href="@config.baseUrl/workbench" class="mdl-button mdl-js-button mdl-button--raised">New workspace UI</a>
<div class="mdl-tooltip" data-mdl-for="beta-workspace-switch">
Switch to the beta version of the new workspace user interface.
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ object ItemType {
private def context: String = WorkbenchConfig.applicationContext

// TODO: Update URL after deciding on path for new workspace
private def workspaceProjectPath(projectId: String) = s"workspace-beta/projects/$projectId"
private def workspaceProjectPath(projectId: String) = s"workbench/projects/$projectId"

/** Link to the item details page. */
def itemDetailsPage(itemType: ItemType, projectId: String, itemId: String): ItemLink = {
Expand Down Expand Up @@ -103,4 +103,4 @@ case class ItemLink(label: String, path: String)

object ItemLink {
implicit val itemLinkFormat: Format[ItemLink] = Json.format[ItemLink]
}
}

0 comments on commit 3516164

Please sign in to comment.