Skip to content

Commit 9ff620b

Browse files
committed
Fix routing oversight
1 parent 4a90934 commit 9ff620b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/client/js/services/fng-routes.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ module fng.services {
1313
prefix: '' // How do we want to prefix our routes? If not empty string then first character must be slash (which is added if not)
1414
};
1515

16-
var postActions: Array<string> = ['edit'];
16+
var postActions: Array<string> = ['edit','view'];
1717

1818
var builtInRoutes:Array<fng.IBuiltInRoute> = [
1919
{
@@ -24,7 +24,7 @@ module fng.services {
2424
{route: '/analyse/:model', state: 'analyse::model', templateUrl: 'base-analysis.html'},
2525
{route: '/:model/:id/edit', state: 'model::edit', templateUrl: 'base-edit.html'},
2626
{route: '/:model/:id/edit/:tab', state: 'model::edit::tab', templateUrl: 'base-edit.html'},
27-
{route: '/:model/:id/view', state: 'model::view', templateUrl: 'base-view.html'},
27+
{route: '/:model/:id/view', state: 'model::edit', templateUrl: 'base-view.html'},
2828
{route: '/:model/:id/view/:tab', state: 'model::view::tab', templateUrl: 'base-view.html'},
2929
{route: '/:model/new', state: 'model::new', templateUrl: 'base-edit.html'},
3030
{route: '/:model', state: 'model::list', templateUrl: 'base-list.html'},

0 commit comments

Comments
 (0)