From fa52d58d609c8a5ed8d9caaa88fa9f3dc071e72b Mon Sep 17 00:00:00 2001 From: Sanggyu Nam Date: Sat, 10 Oct 2015 13:03:00 +0900 Subject: [PATCH] Define one more level in ui-router states * To distinguish two states: configuration for timetables, and showing the result of timetable generation. * This change was proposed in a comment to issue #15. --- app/create/create.module.js | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/app/create/create.module.js b/app/create/create.module.js index cba382a..370e29f 100644 --- a/app/create/create.module.js +++ b/app/create/create.module.js @@ -32,28 +32,40 @@ } }, { - state: 'create.course-cart', + state: 'create.conf', + config: { + abstract: true + } + }, + { + state: 'create.conf.course-cart', config: { url: '' } }, { - state: 'create.search', + state: 'create.conf.search', + config: { + } + }, + { + state: 'create.conf.search-result', config: { } }, { - state: 'create.search-result', + state: 'create.result', config: { + abstract: true } }, { - state: 'create.generated', + state: 'create.result.list', config: { } }, { - state: 'create.detail', + state: 'create.result.detail', config: { } }