save dialog
This commit is contained in:
@@ -4,6 +4,7 @@ import {SongComponent} from './song/song.component';
|
||||
import {SongListComponent} from './song-list/song-list.component';
|
||||
import {EditComponent} from './song/edit/edit.component';
|
||||
import {NewComponent} from './song/new/new.component';
|
||||
import {EditSongGuard} from './song/edit/edit-song.guard';
|
||||
|
||||
|
||||
const routes: Routes = [
|
||||
@@ -18,7 +19,8 @@ const routes: Routes = [
|
||||
},
|
||||
{
|
||||
path: ':songId/edit',
|
||||
component: EditComponent
|
||||
component: EditComponent,
|
||||
canDeactivate: [EditSongGuard]
|
||||
},
|
||||
{
|
||||
path: ':songId',
|
||||
|
||||
Reference in New Issue
Block a user