Add permissions
This commit is contained in:
@@ -27,7 +27,7 @@
|
||||
:pagination="pagination" >
|
||||
|
||||
<template v-slot:top>
|
||||
<q-btn color="primary" :disable="allLoading || loading || selected?.id == -2" label="追加" @click="showAddRoleDialog" />
|
||||
<q-btn color="primary" :disable="allLoading || loading || selected?.id == EMPTY_ROLE.id" label="追加" @click="showAddRoleDialog" />
|
||||
<q-space />
|
||||
<q-input borderless dense filled debounce="300" v-model="filter" placeholder="検索">
|
||||
<template v-slot:append>
|
||||
@@ -132,7 +132,12 @@ const statusFilterOptions = [
|
||||
|
||||
const pagination = ref({ sortBy: 'id', descending: true, rowsPerPage: 20 });
|
||||
|
||||
const roles = computed(() => userStore.roles.concat(EMPTY_ROLE));
|
||||
const roles = computed(() => {
|
||||
if (userStore.roles.length > 0) {
|
||||
return userStore.roles.concat(EMPTY_ROLE);
|
||||
}
|
||||
return userStore.roles;
|
||||
});
|
||||
|
||||
const selected = ref<IRolesDisplay>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user