diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2021-06-28 12:21:52 +0200 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2021-06-28 12:21:52 +0200 |
commit | 8bbc0c2d3bc40122297b19665cf1df3ff3670e1f (patch) | |
tree | b987bea99b85493661e03e3fdf3c54fb24fbf93b /src/components/CircleDetails.vue | |
parent | bf247b3861f41b59822cb0965bfa68de6fdb79ab (diff) |
Fix circle membership request
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'src/components/CircleDetails.vue')
-rw-r--r-- | src/components/CircleDetails.vue | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/src/components/CircleDetails.vue b/src/components/CircleDetails.vue index 774d7dce..b9346491 100644 --- a/src/components/CircleDetails.vue +++ b/src/components/CircleDetails.vue @@ -54,7 +54,7 @@ </template> </DetailsHeader> - <section class="circle-details-section"> + <section class="circle-details-section circle-details-section__actions"> <!-- copy circle link --> <a class="circle-details__action-copy-link button" :href="circleUrl" @@ -62,6 +62,17 @@ @click.stop.prevent="copyToClipboard(circleUrl)"> {{ copyButtonText }} </a> + + <!-- Only show the join button if the circle is accepting requests --> + <button v-if="!circle.isMember && circle.canJoin" + :disabled="loadingJoin" + class="primary" + @click="joinCircle"> + <Login slot="icon" + :size="16" + decorative /> + {{ t('contacts', 'Request to join') }} + </button> </section> <section v-if="showDescription" class="circle-details-section"> @@ -118,6 +129,7 @@ import AppContentDetails from '@nextcloud/vue/dist/Components/AppContentDetails' import Avatar from '@nextcloud/vue/dist/Components/Avatar' import RichContenteditable from '@nextcloud/vue/dist/Components/RichContenteditable' +import Login from 'vue-material-design-icons/Login' import Logout from 'vue-material-design-icons/Logout' import { CircleEdit, editCircle } from '../services/circles.ts' @@ -135,6 +147,7 @@ export default { CircleConfigs, ContentHeading, DetailsHeader, + Login, Logout, RichContenteditable, }, @@ -223,6 +236,13 @@ export default { margin-top: 24px; } + &__actions { + display: flex; + a, button { + margin-right: 8px; + } + } + &__description { max-width: 800px; } |