Commit bc261edf authored by onny's avatar onny

fix dashboard requesttoken

parent 95283827
Pipeline #225 failed with stages
in 17 minutes and 43 seconds
......@@ -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'
import Sidebar from './Sidebar'
import { Howl, Howler } 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'
let audioPlayer = null
const requesttoken = axios.defaults.headers.requesttoken
......@@ -65,10 +54,7 @@ export default {
AppContent,
Table,
EmptyContent,
<<<<<<< HEAD
=======
Sidebar,
>>>>>>> nc20
},
data: () => ({
tableData: [],
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment