Compare commits
2 Commits
ed1e1478b2
...
5e1bc6d705
Author | SHA1 | Date | |
---|---|---|---|
5e1bc6d705 | |||
d4a230f96d |
@ -134,15 +134,22 @@ export class AppCommonEffects {
|
||||
withLatestFrom(this.store$.select(appCommonReducers.selectGetItemTypes)),
|
||||
switchMap(([action, itemtypes]) => {
|
||||
const a = action as appCommonActions.EditItem;
|
||||
var editor = "property";
|
||||
var editor = "property";
|
||||
if(a.item.itemType) {
|
||||
const itemType = itemtypes[a.item.itemType];
|
||||
var editor = itemType && itemType.editor ? itemType.editor : editor;
|
||||
}
|
||||
this.router$.navigate(['/editor',editor,'item', a.item.code])
|
||||
return [];
|
||||
}
|
||||
)));
|
||||
if (editor == 'croppingscheme') {
|
||||
// Exeception: no 'item' in route
|
||||
this.router$.navigate(['/editor', editor, a.item.code])
|
||||
}
|
||||
else {
|
||||
this.router$.navigate(['/editor', editor, 'item', a.item.code])
|
||||
}
|
||||
return [];
|
||||
}
|
||||
)
|
||||
));
|
||||
|
||||
viewItem$ = createEffect(() => this.actions$.pipe(
|
||||
ofType(appCommonActions.VIEWITEM),
|
||||
|
Loading…
Reference in New Issue
Block a user