summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/client/components/global/a.vue9
-rw-r--r--src/client/ui/deck.vue8
-rw-r--r--src/client/ui/desktop.vue8
3 files changed, 17 insertions, 8 deletions
diff --git a/src/client/components/global/a.vue b/src/client/components/global/a.vue
index 671245fec7..cf894deaba 100644
--- a/src/client/components/global/a.vue
+++ b/src/client/components/global/a.vue
@@ -10,7 +10,7 @@ import { faExpandAlt, faColumns, faExternalLinkAlt, faLink, faWindowMaximize } f
import * as os from '@/os';
import copyToClipboard from '@/scripts/copy-to-clipboard';
import { router } from '@/router';
-import { ui, url } from '@/config';
+import { url } from '@/config';
import { popout } from '@/scripts/popout';
import { ColdDeviceStorage } from '@/store';
@@ -115,13 +115,6 @@ export default defineComponent({
if (this.$store.state.defaultSideView && this.sideViewHook && this.to !== '/') {
return this.sideViewHook(this.to);
}
- // TODO: a.vueからdeck-sotreを参照したくないのでなんとかする
- //if (deckStore.state.device.deckNavWindow && (ui === 'deck') && this.to !== '/') {
- // return this.window();
- //}
- if (ui === 'desktop') {
- return this.window();
- }
if (this.$router.currentRoute.value.path === this.to) {
window.scroll({ top: 0, behavior: 'smooth' });
diff --git a/src/client/ui/deck.vue b/src/client/ui/deck.vue
index 6cdf56f3c3..fb40871a7d 100644
--- a/src/client/ui/deck.vue
+++ b/src/client/ui/deck.vue
@@ -50,6 +50,14 @@ export default defineComponent({
DeckColumnCore,
},
+ provide() {
+ return deckStore.state.navWindow ? {
+ navHook: (url) => {
+ os.pageWindow(url);
+ }
+ } : {};
+ },
+
data() {
return {
deckStore,
diff --git a/src/client/ui/desktop.vue b/src/client/ui/desktop.vue
index 199c0fdaaf..a1f58af5cc 100644
--- a/src/client/ui/desktop.vue
+++ b/src/client/ui/desktop.vue
@@ -22,6 +22,14 @@ export default defineComponent({
XSidebar
},
+ provide() {
+ return {
+ navHook: (url) => {
+ os.pageWindow(url);
+ }
+ };
+ },
+
data() {
return {
host: host,