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:
Simon L 2023-03-09 19:19:04 +01:00 committed by GitHub
commit 11f46fc219
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 21 additions and 9 deletions

View file

@ -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>

View file

@ -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

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

File diff suppressed because one or more lines are too long