mirror of
https://github.com/Lissy93/dashy.git
synced 2025-07-25 22:55:32 +02:00
🚧 Checks if multi-tasking enabled, and loads in correct component
This commit is contained in:
parent
126ae5f155
commit
030764c99e
@ -1,7 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="work-space">
|
<div class="work-space">
|
||||||
<SideBar :sections="sections" @launch-app="launchApp" />
|
<SideBar :sections="sections" @launch-app="launchApp" />
|
||||||
<WebContent :url="url" />
|
<WebContent :url="url" v-if="!isMultiTaskingEnabled" />
|
||||||
|
<MultiTaskingWebComtent :url="url" v-else />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -9,6 +10,7 @@
|
|||||||
|
|
||||||
import SideBar from '@/components/Workspace/SideBar';
|
import SideBar from '@/components/Workspace/SideBar';
|
||||||
import WebContent from '@/components/Workspace/WebContent';
|
import WebContent from '@/components/Workspace/WebContent';
|
||||||
|
import MultiTaskingWebComtent from '@/components/Workspace/MultiTaskingWebComtent';
|
||||||
import Defaults from '@/utils/defaults';
|
import Defaults from '@/utils/defaults';
|
||||||
import { GetTheme, ApplyLocalTheme, ApplyCustomVariables } from '@/utils/ThemeHelper';
|
import { GetTheme, ApplyLocalTheme, ApplyCustomVariables } from '@/utils/ThemeHelper';
|
||||||
|
|
||||||
@ -24,9 +26,15 @@ export default {
|
|||||||
ApplyLocalTheme,
|
ApplyLocalTheme,
|
||||||
ApplyCustomVariables,
|
ApplyCustomVariables,
|
||||||
}),
|
}),
|
||||||
|
computed: {
|
||||||
|
isMultiTaskingEnabled() {
|
||||||
|
return this.appConfig.enableMultiTasking || false;
|
||||||
|
},
|
||||||
|
},
|
||||||
components: {
|
components: {
|
||||||
SideBar,
|
SideBar,
|
||||||
WebContent,
|
WebContent,
|
||||||
|
MultiTaskingWebComtent,
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
launchApp(url) {
|
launchApp(url) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user