diff options
author | Eduardo Morales <emoral435@gmail.com> | 2023-12-08 22:10:24 -0600 |
---|---|---|
committer | Eduardo Morales <emoral435@gmail.com> | 2023-12-14 20:16:37 -0600 |
commit | 254f4b00d9ccf7d575ed0fbc5fbcec8bd3900b53 (patch) | |
tree | 610947f3e58cee6738537d36809b9052d5ce5796 /apps/oauth2 | |
parent | ce0dc03823725d76c777e708986c138d8c939137 (diff) | |
download | nextcloud-server-254f4b00d9ccf7d575ed0fbc5fbcec8bd3900b53.tar.gz nextcloud-server-254f4b00d9ccf7d575ed0fbc5fbcec8bd3900b53.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() { |