diff options
author | Christopher Ng <chrng8@gmail.com> | 2022-07-06 23:08:07 +0000 |
---|---|---|
committer | Christopher Ng <chrng8@gmail.com> | 2022-07-07 17:23:50 +0000 |
commit | e0492074aa4d4a2423059db42d9c6d7fa126da94 (patch) | |
tree | 897aa102a11d49e7111c4cea3dedec4e17b82cfe /apps/files_sharing/src/components/SharingEntrySimple.vue | |
parent | 744f1dd5638c7924be9c19621033d67991c65fd2 (diff) | |
download | nextcloud-server-e0492074aa4d4a2423059db42d9c6d7fa126da94.tar.gz nextcloud-server-e0492074aa4d4a2423059db42d9c6d7fa126da94.zip |
Add expanded attribute to button for listing others with access
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'apps/files_sharing/src/components/SharingEntrySimple.vue')
-rw-r--r-- | apps/files_sharing/src/components/SharingEntrySimple.vue | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/apps/files_sharing/src/components/SharingEntrySimple.vue b/apps/files_sharing/src/components/SharingEntrySimple.vue index de545a497a8..8627c87f97a 100644 --- a/apps/files_sharing/src/components/SharingEntrySimple.vue +++ b/apps/files_sharing/src/components/SharingEntrySimple.vue @@ -29,7 +29,10 @@ {{ subtitle }} </p> </div> - <Actions v-if="$slots['default']" menu-align="right" class="sharing-entry__actions"> + <Actions v-if="$slots['default']" + class="sharing-entry__actions" + menu-align="right" + :aria-expanded="ariaExpandedValue"> <slot /> </Actions> </li> @@ -68,8 +71,20 @@ export default { type: Boolean, default: true, }, + ariaExpanded: { + type: Boolean, + default: null, + }, }, + computed: { + ariaExpandedValue() { + if (this.ariaExpanded === null) { + return this.ariaExpanded + } + return this.ariaExpanded ? 'true' : 'false' + }, + }, } </script> |