-
Notifications
You must be signed in to change notification settings - Fork 34
Feature: Allow assign on groups #31
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| export default { | ||
| shouldRender(args, component) { | ||
| return component.currentUser && component.currentUser.get("staff"); | ||
| return component.currentUser && component.currentUser.get("can_assign"); | ||
| } | ||
| }; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -27,3 +27,10 @@ plugins: | |
| client: true | ||
| default: 10 | ||
| min: 1 | ||
| assign_allowed_on_groups: | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not sure about this as a site setting and I feel like this should be a group option stored in a group custom fields. The trouble with a site setting is that when a group is renamed or deleted, the site settings becomes inaccurate. Having to handle that in a nice manner isn't going to be easy.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think that the site setting makes it easier to manage multiple allowed groups. Maybe we can track when a group gets renamed/deleted and make sure it remains synced?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hmm maybe but I still think that having to maintain this sync is quite tricky. Maybe have a look how type: category for site settings is handled? I'm not sure myself but worth exploring.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ended up using |
||
| client: true | ||
| type: group_list | ||
| list_type: compact | ||
| default: 'staff' | ||
| allow_any: false | ||
| refresh: true | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does
this.siteSettingsnot work here?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nope, that's why I had to use this 😨