diff options
author | Julia Kirschenheuter <6078378+JuliaKirschenheuter@users.noreply.github.com> | 2023-01-11 15:22:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-11 15:22:37 +0100 |
commit | 8393ae27777777ff2ddcba10a9e124e36c30d634 (patch) | |
tree | 42611b49f2fa81df2830018f939bb526769cbed0 /apps/settings/src/components/AuthTokenSetupDialogue.vue | |
parent | 9bddc38f196bdf28142a0cd7afce4505672d8fa2 (diff) | |
parent | 087f445499ec5a1d4eae246941f0e155420685fb (diff) | |
download | nextcloud-server-8393ae27777777ff2ddcba10a9e124e36c30d634.tar.gz nextcloud-server-8393ae27777777ff2ddcba10a9e124e36c30d634.zip |
Merge pull request #35901 from nextcloud/fix/35886-Replace_custom_tooltips_with_native_one_for_personal_and_administration_settings
Replace custom tooltips with native tooltips in personal and administration settings
Diffstat (limited to 'apps/settings/src/components/AuthTokenSetupDialogue.vue')
-rw-r--r-- | apps/settings/src/components/AuthTokenSetupDialogue.vue | 22 |
1 files changed, 5 insertions, 17 deletions
diff --git a/apps/settings/src/components/AuthTokenSetupDialogue.vue b/apps/settings/src/components/AuthTokenSetupDialogue.vue index 3eae5b389b9..09b44a8b96c 100644 --- a/apps/settings/src/components/AuthTokenSetupDialogue.vue +++ b/apps/settings/src/components/AuthTokenSetupDialogue.vue @@ -55,8 +55,10 @@ class="monospaced" readonly="readonly" @focus="selectInput"> + <a ref="clipboardButton" - v-tooltip="copyTooltipOptions" + :title="copyTooltipOptions" + :aria-label="copyTooltipOptions" v-clipboard:copy="appPassword" v-clipboard:success="onCopyPassword" v-clipboard:error="onCopyPasswordFailed" @@ -113,24 +115,10 @@ export default { }, computed: { copyTooltipOptions() { - const base = { - hideOnTargetClick: false, - trigger: 'manual', - } - if (this.passwordCopied) { - return { - ...base, - content: t('settings', 'Copied!'), - show: true, - } - } else { - return { - ...base, - content: t('settings', 'Copy'), - show: this.hoveringCopyButton, - } + return t('settings', 'Copied!') } + return t('settings', 'Copy') }, }, methods: { |