Allow restricting announcement to a set of roles. Fix MkRoleSelectDialog only respecting publicOnly half the time
Closes #682
This commit is contained in:
parent
5dd32123a3
commit
f3b5c3f447
12 changed files with 96 additions and 1 deletions
|
|
@ -100,7 +100,7 @@ async function fetchRoles() {
|
|||
|
||||
async function addRole() {
|
||||
const items = roles.value
|
||||
.filter(r => r.isPublic)
|
||||
.filter(r => publicOnly.value ? r.isPublic : true)
|
||||
.filter(r => !selectedRoleIds.value.includes(r.id))
|
||||
.map(r => ({ text: r.name, value: r }));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue