mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
enh(oauth2): allowed toggling of aria label
Signed-off-by: Eduardo Morales <emoral435@gmail.com>
This commit is contained in:
parent
ce0dc03823
commit
254f4b00d9
3 changed files with 11 additions and 6 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
4
dist/oauth2-oauth2.js
vendored
4
dist/oauth2-oauth2.js
vendored
File diff suppressed because one or more lines are too long
2
dist/oauth2-oauth2.js.map
vendored
2
dist/oauth2-oauth2.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue