diff --git a/lib/Db/Circle.php b/lib/Db/Circle.php index a8808c102..9887f306e 100644 --- a/lib/Db/Circle.php +++ b/lib/Db/Circle.php @@ -36,8 +36,8 @@ class Circle extends RelationalObject { public function getObjectSerialization() { return [ 'uid' => $this->object->getUniqueId(), - 'displayname' => $this->object->getName(), - 'typeString' => $this->object->getTypeString(), + 'displayname' => $this->object->getDisplayName(), + 'typeString' => '', 'circleOwner' => $this->object->getOwner(), 'type' => 7 ]; diff --git a/lib/Service/PermissionService.php b/lib/Service/PermissionService.php index bef86f599..787987bf4 100644 --- a/lib/Service/PermissionService.php +++ b/lib/Service/PermissionService.php @@ -268,7 +268,11 @@ class PermissionService { continue; } - foreach ($circle->getMembers() as $member) { + foreach ($circle->getInheritedMembers() as $member) { + if ($member->getUserType() !== 1) { + // deck currently only supports user members in circles + continue; + } $user = $this->userManager->get($member->getUserId()); if ($user === null) { $this->logger->info('No user found for circle member ' . $member->getUserId()); diff --git a/src/CardCreateDialog.vue b/src/CardCreateDialog.vue index cd88375c6..113e6e867 100644 --- a/src/CardCreateDialog.vue +++ b/src/CardCreateDialog.vue @@ -168,6 +168,7 @@ export default { }, close() { + this.$emit('close') this.$root.$emit('close') }, async select() { diff --git a/src/components/Controls.vue b/src/components/Controls.vue index bcfbdba49..a6db277d0 100644 --- a/src/components/Controls.vue +++ b/src/components/Controls.vue @@ -25,6 +25,12 @@

{{ overviewName }}

+ + + {{ t('deck', 'Add card') }} + + +
@@ -206,11 +212,12 @@ import { mapState, mapGetters } from 'vuex' import { Actions, ActionButton, Popover, Avatar } from '@nextcloud/vue' import labelStyle from '../mixins/labelStyle' +import CardCreateDialog from '../CardCreateDialog' export default { name: 'Controls', components: { - Actions, ActionButton, Popover, Avatar, + Actions, ActionButton, Popover, Avatar, CardCreateDialog, }, mixins: [labelStyle], props: { @@ -233,6 +240,7 @@ export default { showArchived: false, isAddStackVisible: false, filter: { tags: [], users: [], due: '', unassigned: false }, + showAddCardModal: false, } }, @@ -318,6 +326,12 @@ export default { this.$store.dispatch('setFilter', { ...filterReset }) this.filter = filterReset }, + clickShowAddCardModel() { + this.showAddCardModal = true + }, + clickHideAddCardModel() { + this.showAddCardModal = false + }, }, } diff --git a/src/components/board/Board.vue b/src/components/board/Board.vue index d47ea1a38..f0098379d 100644 --- a/src/components/board/Board.vue +++ b/src/components/board/Board.vue @@ -32,7 +32,7 @@
{{ t('deck', 'No lists available') }} -