repod/src/App.vue
Michel Roux 1eeb718a88
All checks were successful
repod / xml (push) Successful in 28s
repod / php (push) Successful in 1m23s
repod / nodejs (push) Successful in 2m35s
Add initial-state
2023-12-24 00:24:46 +01:00

33 lines
687 B
Vue

<template>
<NcContent app-name="repod">
<GPodder v-if="!gpodder" />
<Subscriptions v-if="gpodder" />
<router-view v-if="gpodder" :key="$route.path" />
<Bar />
</NcContent>
</template>
<script>
import '@nextcloud/dialogs/style.css'
import Bar from './components/Player/Bar.vue'
import GPodder from './views/GPodder.vue'
import { NcContent } from '@nextcloud/vue'
import Subscriptions from './components/Sidebar/Subscriptions.vue'
import { loadState } from '@nextcloud/initial-state'
export default {
name: 'App',
components: {
Bar,
GPodder,
NcContent,
Subscriptions,
},
computed: {
gpodder() {
return loadState('repod', 'gpodder', false)
},
},
}
</script>