diff --git a/src/router/index.js b/src/router/index.js index 9b7e466b06..6c1ade4542 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -25,12 +25,13 @@ import Vue from 'vue' import Router from 'vue-router' import routes from './router.js' import store from '../store/index.js' +import { generateUrl } from '@nextcloud/router' Vue.use(Router) const libresignVar = store.state.settings -const base = generateOcsUrl('/apps/libresign') +const base = generateUrl('/apps/libresign') const router = new Router({ mode: 'history', diff --git a/src/store/modules/files.js b/src/store/modules/files.js index 11dad1fe1f..e272f2df79 100644 --- a/src/store/modules/files.js +++ b/src/store/modules/files.js @@ -1,5 +1,6 @@ import axios from '@nextcloud/axios' import { showError } from '@nextcloud/dialogs' +import { generateOcsUrl } from '@nextcloud/router' const state = { file: {}, diff --git a/src/tab.js b/src/tab.js index 34b0e96b13..4b85106ff3 100644 --- a/src/tab.js +++ b/src/tab.js @@ -23,7 +23,6 @@ import Vue from 'vue' import Vuex from 'vuex' -import { imagePath } from '@nextcloud/router' import { loadState } from '@nextcloud/initial-state' import { translate as t, translatePlural as n } from '@nextcloud/l10n' import LibresignTab from './views/FilesTab/LibresignTab.vue' diff --git a/src/views/FilesTab/LibresignTab.vue b/src/views/FilesTab/LibresignTab.vue index 0644a65041..8ae11be781 100644 --- a/src/views/FilesTab/LibresignTab.vue +++ b/src/views/FilesTab/LibresignTab.vue @@ -117,7 +117,7 @@