diff options
author | Eduardo Morales <emoral435@gmail.com> | 2023-12-08 22:10:24 -0600 |
---|---|---|
committer | backportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com> | 2023-12-15 02:54:08 +0000 |
commit | c8f79702a34b2b44a2c262a27740e353ea43ade6 (patch) | |
tree | 6e66d19ddd2f1e246130908538e0e530055a3186 /apps/oauth2 | |
parent | 405fef98c59a3b6f74b5a48b9c5801c67f3cb299 (diff) | |
download | nextcloud-server-c8f79702a34b2b44a2c262a27740e353ea43ade6.tar.gz nextcloud-server-c8f79702a34b2b44a2c262a27740e353ea43ade6.zip |
enh(oauth2): allowed toggling of aria label
Signed-off-by: Eduardo Morales <emoral435@gmail.com>
Diffstat (limited to 'apps/oauth2')
-rw-r--r-- | apps/oauth2/src/components/OAuthItem.vue | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/apps/oauth2/src/components/OAuthItem.vue b/apps/oauth2/src/components/OAuthItem.vue index fcceade4082..2a2eced7701 100644 --- a/apps/oauth2/src/components/OAuthItem.vue +++ b/apps/oauth2/src/components/OAuthItem.vue @@ -28,11 +28,10 @@ <div class="action-secret"> <code>{{ renderedSecret }}</code> <NcButton type="tertiary-no-background" - :aria-label="t('oauth2', 'Show client secret')" + :aria-label="toggleAriaLabel" @click="toggleSecret"> <template #icon> - <EyeOutline :size="20" - :title="t('oauth2', 'Show client secret')" /> + <EyeOutline :size="20"/> </template> </NcButton> </div> @@ -87,6 +86,12 @@ export default { return '****' } }, + toggleAriaLabel() { + if (!this.renderSecret) { + return t('oauth2', 'Show client secret') + } + return t('oauth2', 'Hide client secret') + } }, methods: { toggleSecret() { |