mirror of
https://github.com/nextcloud/server.git
synced 2026-04-28 09:37:29 -04:00
Merge pull request #37145 from nextcloud/enh/noid/add-link-to-app-tokens
add a direct link from files settings to app-token-settings
This commit is contained in:
commit
11f46fc219
6 changed files with 21 additions and 9 deletions
|
|
@ -61,10 +61,19 @@
|
|||
</template>
|
||||
</NcInputField>
|
||||
<em>
|
||||
<a :href="webdavDocs" target="_blank" rel="noreferrer noopener">
|
||||
<a class="setting-link"
|
||||
:href="webdavDocs"
|
||||
target="_blank"
|
||||
rel="noreferrer noopener">
|
||||
{{ t('files', 'Use this address to access your Files via WebDAV') }} ↗
|
||||
</a>
|
||||
</em>
|
||||
<br>
|
||||
<em>
|
||||
<a class="setting-link" :href="appPasswordUrl">
|
||||
{{ t('files', 'If you have enabled 2FA, you must create and use a new app password by clicking here.') }} ↗
|
||||
</a>
|
||||
</em>
|
||||
</NcAppSettingsSection>
|
||||
</NcAppSettingsDialog>
|
||||
</template>
|
||||
|
|
@ -119,6 +128,7 @@ export default {
|
|||
// Webdav infos
|
||||
webdavUrl: generateRemoteUrl('dav/files/' + encodeURIComponent(getCurrentUser()?.uid)),
|
||||
webdavDocs: 'https://docs.nextcloud.com/server/stable/go.php?to=user-webdav',
|
||||
appPasswordUrl: generateUrl('/settings/user/security#generate-app-token-section'),
|
||||
webdavUrlCopied: false,
|
||||
}
|
||||
},
|
||||
|
|
@ -168,5 +178,7 @@ export default {
|
|||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
||||
.setting-link:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@
|
|||
-->
|
||||
|
||||
<template>
|
||||
<div v-if="!adding" class="row spacing">
|
||||
<div v-if="!adding" id="generate-app-token-section" class="row spacing">
|
||||
<!-- Port to TextField component when available -->
|
||||
<input v-model="deviceName"
|
||||
type="text"
|
||||
|
|
|
|||
4
dist/files-main.js
vendored
4
dist/files-main.js
vendored
File diff suppressed because one or more lines are too long
2
dist/files-main.js.map
vendored
2
dist/files-main.js.map
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue