-
Notifications
You must be signed in to change notification settings - Fork 7.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(editor): Add workflow action to switch between new and old canva…
…s (no-changelog) (#9969)
- Loading branch information
1 parent
509593b
commit d034430
Showing
7 changed files
with
79 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<script lang="ts" setup> | ||
import { useLocalStorage } from '@vueuse/core'; | ||
import { watch } from 'vue'; | ||
import { useRouter } from 'vue-router'; | ||
import NodeViewV1 from '@/views/NodeView.vue'; | ||
import NodeViewV2 from '@/views/NodeView.v2.vue'; | ||
const router = useRouter(); | ||
const nodeViewVersion = useLocalStorage('NodeView.version', '1'); | ||
watch(nodeViewVersion, () => { | ||
router.go(0); | ||
}); | ||
</script> | ||
|
||
<template> | ||
<NodeViewV2 v-if="nodeViewVersion === '2'" /> | ||
<NodeViewV1 v-else /> | ||
</template> |