Mentions légales du service

Skip to content
Snippets Groups Projects

Resolve "Form button lauch preview in this page"

Merged VIAUD Nathan requested to merge 173-form-button-lauch-preview-in-this-page into main
3 files
+ 13
1
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -3,7 +3,7 @@ import { useEditorStore } from '../../shared/stores';
import FormButton from './components/FormButton.vue';
import GenericField from './components/GenericField.vue';
import { Input } from '@/src/shared/interfaces';
import { projectService } from '@/src/shared/services';
import { projectService, editorService } from '@/src/shared/services';
const editorStore = useEditorStore();
@@ -25,6 +25,10 @@ function actionOnForm(action: string) {
case 'duplicate-element':
editorStore.duplicateElement();
break;
case 'launch-preview':
editorService.runPreviewAtPage();
break;
}
}
Loading