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