Compare commits

..

No commits in common. "5e1bc6d705b8104fc148ef73dd05ac80594eab63" and "ed1e1478b231c95e9b16a33fa07f608e748e4ea8" have entirely different histories.

View File

@ -134,22 +134,15 @@ export class AppCommonEffects {
withLatestFrom(this.store$.select(appCommonReducers.selectGetItemTypes)), withLatestFrom(this.store$.select(appCommonReducers.selectGetItemTypes)),
switchMap(([action, itemtypes]) => { switchMap(([action, itemtypes]) => {
const a = action as appCommonActions.EditItem; const a = action as appCommonActions.EditItem;
var editor = "property"; var editor = "property";
if(a.item.itemType) { if(a.item.itemType) {
const itemType = itemtypes[a.item.itemType]; const itemType = itemtypes[a.item.itemType];
var editor = itemType && itemType.editor ? itemType.editor : editor; var editor = itemType && itemType.editor ? itemType.editor : editor;
} }
if (editor == 'croppingscheme') { this.router$.navigate(['/editor',editor,'item', a.item.code])
// Exeception: no 'item' in route return [];
this.router$.navigate(['/editor', editor, a.item.code]) }
} )));
else {
this.router$.navigate(['/editor', editor, 'item', a.item.code])
}
return [];
}
)
));
viewItem$ = createEffect(() => this.actions$.pipe( viewItem$ = createEffect(() => this.actions$.pipe(
ofType(appCommonActions.VIEWITEM), ofType(appCommonActions.VIEWITEM),