File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -228,9 +228,7 @@ const loadEditorState = async () => {
228228const handleMounted = () => {
229229 // templates load from Home.vue
230230 // but if user lands directly on editor check and load them
231- inReadonlyMode .value = props .editorAccess == ' view'
232231 loadTemplates ()
233- loadEditorState ()
234232}
235233
236234const handleBeforeUnmount = () => {
@@ -266,6 +264,7 @@ watch(
266264watch (
267265 () => props .presentationId ,
268266 (id ) => {
267+ inReadonlyMode .value = props .editorAccess == ' view'
269268 if (route .name === ' EditorNew' ) {
270269 resetEditorState ()
271270 themeDialogAction .value = ' create'
@@ -274,6 +273,7 @@ watch(
274273 }
275274 loadEditorState ()
276275 },
276+ { immediate: true },
277277)
278278
279279onBeforeRouteLeave (() => {
You can’t perform that action at this time.
0 commit comments