refactor(theme-basic): change state service dispatcher parameters

pull/2431/head
TheDiaval 6 years ago
parent 177f4ffe08
commit fdd73da785

@ -12,11 +12,13 @@ export class LayoutStateService {
return this.store.selectSnapshot(LayoutState.getNavigationElements); return this.store.selectSnapshot(LayoutState.getNavigationElements);
} }
dispatchAddNavigationElement(payload: Layout.NavigationElement | Layout.NavigationElement[]) { dispatchAddNavigationElement(...args: ConstructorParameters<typeof AddNavigationElement>) {
return this.store.dispatch(new AddNavigationElement(payload)); return this.store.dispatch(new AddNavigationElement(...args));
} }
dispatchRemoveNavigationElementByName(name: string) { dispatchRemoveNavigationElementByName(
return this.store.dispatch(new RemoveNavigationElementByName(name)); ...args: ConstructorParameters<typeof RemoveNavigationElementByName>
) {
return this.store.dispatch(new RemoveNavigationElementByName(...args));
} }
} }

Loading…
Cancel
Save