mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Add expanded attribute to button for listing others with access
Signed-off-by: Christopher Ng <chrng8@gmail.com>
This commit is contained in:
parent
744f1dd563
commit
e0492074aa
4 changed files with 21 additions and 5 deletions
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
|
|
@ -25,7 +25,8 @@
|
|||
<!-- Main collapsible entry -->
|
||||
<SharingEntrySimple class="sharing-entry__inherited"
|
||||
:title="mainTitle"
|
||||
:subtitle="subTitle">
|
||||
:subtitle="subTitle"
|
||||
:aria-expanded="showInheritedShares">
|
||||
<template #avatar>
|
||||
<div class="avatar-shared icon-more-white" />
|
||||
</template>
|
||||
|
|
|
|||
4
dist/files_sharing-files_sharing_tab.js
vendored
4
dist/files_sharing-files_sharing_tab.js
vendored
File diff suppressed because one or more lines are too long
2
dist/files_sharing-files_sharing_tab.js.map
vendored
2
dist/files_sharing-files_sharing_tab.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue