diff --git a/src/elements/pages/dev/game/pages/game-version-draft.ts b/src/elements/pages/dev/game/pages/game-version-draft.ts index 581f5f7a..2e5d3e52 100644 --- a/src/elements/pages/dev/game/pages/game-version-draft.ts +++ b/src/elements/pages/dev/game/pages/game-version-draft.ts @@ -308,13 +308,13 @@ export default class DevGameNamespace extends LitElement { } // Redirect to version page - RvtRouter.shared.navigate( - routes.devVersion.build({ - gameId: this.game.gameId, - versionId, - namespaceId: this.namespaceId - }) - ); + // RvtRouter.shared.navigate( + // routes.devVersion.build({ + // gameId: this.game.gameId, + // versionId, + // namespaceId: this.namespaceId + // }) + // ); // Reset the stored draft this.clearDraft(); diff --git a/src/elements/pages/dev/game/pages/game-version.ts b/src/elements/pages/dev/game/pages/game-version.ts index 7aae78ac..1a119e44 100644 --- a/src/elements/pages/dev/game/pages/game-version.ts +++ b/src/elements/pages/dev/game/pages/game-version.ts @@ -164,13 +164,13 @@ export default class DevGameNamespace extends LitElement { ); // Switch to draft view - RvtRouter.shared.navigate( - routes.devVersion.build({ - gameId: this.game.gameId, - versionId: this.versionId, - namespaceId: this.namespaceId - }) - ); + // RvtRouter.shared.navigate( + // routes.devVersion.build({ + // gameId: this.game.gameId, + // versionId: this.versionId, + // namespaceId: this.namespaceId + // }) + // ); } render() { diff --git a/src/routes.ts b/src/routes.ts index 45000afc..d0acac0f 100644 --- a/src/routes.ts +++ b/src/routes.ts @@ -320,25 +320,6 @@ namespace routes { } }); - export let devVersion = new Route<{ gameId: string; namespaceId: string; versionId: string }>({ - path: '/games/:gameId/namespaces/:namespaceId/versions/:versionId', - middlewares: () => [ - MIDDLEWARES.validateUuid('gameId'), - MIDDLEWARES.validateUuid('namespaceId'), - MIDDLEWARES.validateUuid('versionId') - ], - render({ gameId, namespaceId, versionId }) { - return { - title: 'Game Version', - breadcrumb: { type: 'Namespace', gameId, namespaceId, title: 'Version' }, - template: responses.game(gameId, namespaceId, { - namespace: { namespaceId }, - version: { versionId } - }) - }; - } - }); - export let devVersionSettings = new Route<{ gameId: string; namespaceId: string }>({ path: '/games/:gameId/namespaces/:namespaceId/settings', render({ gameId, namespaceId }) {