Commit 05a79d1c authored by François-Xavier Lebastard's avatar François-Xavier Lebastard
Browse files

fix(screen bo) : ajout des onglets

parent 783fe61b
......@@ -9,6 +9,8 @@ import OaTextarea from '@/components/forms/textarea/oa-textarea.vue';
import { IScreen, Screen, screenValidate } from '@/shared/model/screen.model';
import ScreenService from '@/entities/screen/screen.service';
import Icon from '@/components/icon/icon.vue';
import { TABS } from '@/shared/service/tabs-constants';
import HeaderService from '@/shared/service/header-service';
@Component({
components: {
......@@ -23,6 +25,9 @@ import Icon from '@/components/icon/icon.vue';
export default class ScreenEdit extends Vue {
@Inject('screenService') private screenService: () => ScreenService;
@Inject('headerService')
private headerService: () => HeaderService;
public items: any = [{}]; // TODO récupérer les items dans le store
public screen: IScreen = new Screen();
......@@ -32,6 +37,10 @@ export default class ScreenEdit extends Vue {
beforeRouteEnter(to, from, next) {
next(vm => {
vm.handleNavigationChange(to.params);
vm.headerService().filArianeForForm(to.params.idForm);
if (to.params.idForm) {
vm.headerService().updateTabsForFormId(to.params.idWorkspace, to.params.idForm, TABS.KEY_VIEW);
}
});
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment