diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2020-05-08 10:01:54 +0200 |
---|---|---|
committer | npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com> | 2020-05-11 12:06:29 +0000 |
commit | 7daced619b8307838aed2a1cf40608b7485d136d (patch) | |
tree | 3ed0fd4b570c16e2478118ebb67508051ae614ee /apps/settings/src/components/AuthTokenSetupDialogue.vue | |
parent | 09c209d4683ce844da5e0319acc6dc83c00f372a (diff) | |
download | nextcloud-server-7daced619b8307838aed2a1cf40608b7485d136d.tar.gz nextcloud-server-7daced619b8307838aed2a1cf40608b7485d136d.zip |
Fix some linter warnings in settings
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
Diffstat (limited to 'apps/settings/src/components/AuthTokenSetupDialogue.vue')
-rw-r--r-- | apps/settings/src/components/AuthTokenSetupDialogue.vue | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/settings/src/components/AuthTokenSetupDialogue.vue b/apps/settings/src/components/AuthTokenSetupDialogue.vue index eaf58734530..410b0073c0b 100644 --- a/apps/settings/src/components/AuthTokenSetupDialogue.vue +++ b/apps/settings/src/components/AuthTokenSetupDialogue.vue @@ -29,7 +29,7 @@ <button class="button" :disabled="loading" @click="submit"> - {{ t('settings', 'Create new app password') }} + {{ t('settings', 'Create new app password') }} </button> </div> <div v-else> @@ -79,6 +79,7 @@ <script> import QR from '@chenfengyuan/vue-qrcode' import confirmPassword from '@nextcloud/password-confirmation' +import { getRootUrl } from '@nextcloud/router' export default { name: 'AuthTokenSetupDialogue', @@ -141,7 +142,7 @@ export default { this.loginName = token.loginName this.appPassword = token.token - const server = window.location.protocol + '//' + window.location.host + OC.getRootPath() + const server = window.location.protocol + '//' + window.location.host + getRootUrl() this.qrUrl = `nc://login/user:${token.loginName}&password:${token.token}&server:${server}` this.$nextTick(() => { |