Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make show more button toggle text in space member view reactive #11263

Merged
merged 2 commits into from
Jul 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Bugfix: Show more toggle in space members view not reactive

We've fixed a bug where the toggle to show more members in the space members view was not reactive.
Clicking the toggle in the sidebar will now correctly display “Show More” or “Show Less” as intended.

https://github.com/owncloud/web/pull/11263
https://github.com/owncloud/web/issues/11261
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
<oc-button
appearance="raw"
@click="toggleMemberListCollapsed"
v-text="collapseButtonTitle"
v-text="collapseMemberButtonTitle"
/>
</div>
</template>
Expand Down Expand Up @@ -222,6 +222,10 @@ export default defineComponent({
return this.sharesListCollapsed ? this.$gettext('Show more') : this.$gettext('Show less')
},

collapseMemberButtonTitle() {
return this.memberListCollapsed ? this.$gettext('Show more') : this.$gettext('Show less')
},

hasSharees() {
return this.displayCollaborators.length > 0
},
Expand Down