fix dashboard requesttoken
This commit is contained in:
parent
9528382729
commit
bc261edf6f
@ -5,7 +5,7 @@
|
||||
<name>Radio</name>
|
||||
<summary>Radio listening app</summary>
|
||||
<description>Listening to your favorite radio stations in Nextcloud</description>
|
||||
<version>1.0.0</version>
|
||||
<version>1.0.1</version>
|
||||
<licence>AGPL</licence>
|
||||
<author mail="onny@project-insanity.org" >Jonas Heinrich</author>
|
||||
<namespace>Radio</namespace>
|
||||
|
@ -22,6 +22,8 @@ import { showError } from '@nextcloud/dialogs'
|
||||
import { DashboardWidget } from '@nextcloud/vue-dashboard'
|
||||
import EmptyContent from '@nextcloud/vue/dist/Components/EmptyContent'
|
||||
|
||||
const requesttoken = axios.defaults.headers.requesttoken
|
||||
|
||||
export default {
|
||||
name: 'Dashboard',
|
||||
|
||||
@ -84,6 +86,7 @@ export default {
|
||||
methods: {
|
||||
fetchNotifications() {
|
||||
const req = {}
|
||||
axios.defaults.headers.requesttoken = requesttoken
|
||||
axios.get(generateUrl('/apps/radio/api/favorites'), req).then((response) => {
|
||||
this.processNotifications(response.data)
|
||||
this.state = 'ok'
|
||||
|
@ -23,13 +23,10 @@
|
||||
</template>
|
||||
</EmptyContent>
|
||||
</AppContent>
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
<Sidebar
|
||||
:show-sidebar="showSidebar"
|
||||
:sidebar-station="sidebarStation"
|
||||
@toggleSidebar="toggleSidebar" />
|
||||
>>>>>>> nc20
|
||||
</Content>
|
||||
</template>
|
||||
|
||||
@ -37,23 +34,15 @@
|
||||
import Content from '@nextcloud/vue/dist/Components/Content'
|
||||
import AppContent from '@nextcloud/vue/dist/Components/AppContent'
|
||||
import EmptyContent from '@nextcloud/vue/dist/Components/EmptyContent'
|
||||
<<<<<<< HEAD
|
||||
import Navigation from './Navigation'
|
||||
import Table from './Table'
|
||||
import { Howl } from 'howler'
|
||||
|
||||
=======
|
||||
>>>>>>> nc20
|
||||
import { generateUrl } from '@nextcloud/router'
|
||||
import { showError } from '@nextcloud/dialogs'
|
||||
import axios from '@nextcloud/axios'
|
||||
|
||||
import Navigation from './Navigation'
|
||||
import Table from './Table'
|
||||
import Sidebar from './Sidebar'
|
||||
|
||||
import { Howl, Howler } from 'howler'
|
||||
|
||||
import { generateUrl } from '@nextcloud/router'
|
||||
import { showError } from '@nextcloud/dialogs'
|
||||
import axios from '@nextcloud/axios'
|
||||
|
||||
let audioPlayer = null
|
||||
const requesttoken = axios.defaults.headers.requesttoken
|
||||
|
||||
@ -65,10 +54,7 @@ export default {
|
||||
AppContent,
|
||||
Table,
|
||||
EmptyContent,
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
Sidebar,
|
||||
>>>>>>> nc20
|
||||
},
|
||||
data: () => ({
|
||||
tableData: [],
|
||||
|
Loading…
Reference in New Issue
Block a user