permission type rename
This commit is contained in:
parent
8033038c2e
commit
9d96a3f921
36 changed files with 128 additions and 108 deletions
|
@ -83,7 +83,7 @@ export default defineComponent({
|
|||
};
|
||||
},
|
||||
sortedPresence() {
|
||||
return this.presence.toSorted((a, b) => {
|
||||
return this.presence.slice().sort((a, b) => {
|
||||
const memberA = this.getMember(a.memberId);
|
||||
const memberB = this.getMember(b.memberId);
|
||||
return `${memberA?.lastname}, ${memberA?.firstname}`.localeCompare(
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
<AwardListItem v-for="award in awards" :key="award.id" :award="award" />
|
||||
</div>
|
||||
<div class="flex flex-row gap-4">
|
||||
<button v-if="can('create', 'settings', 'award')" primary class="!w-fit" @click="openCreateModal">
|
||||
<button v-if="can('create', 'configuration', 'award')" primary class="!w-fit" @click="openCreateModal">
|
||||
Auszeichnung erstellen
|
||||
</button>
|
||||
</div>
|
||||
|
|
|
@ -15,7 +15,12 @@
|
|||
/>
|
||||
</div>
|
||||
<div class="flex flex-row gap-4">
|
||||
<button v-if="can('create', 'settings', 'calendar_type')" primary class="!w-fit" @click="openCreateModal">
|
||||
<button
|
||||
v-if="can('create', 'configuration', 'calendar_type')"
|
||||
primary
|
||||
class="!w-fit"
|
||||
@click="openCreateModal"
|
||||
>
|
||||
Termintyp erstellen
|
||||
</button>
|
||||
</div>
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
</div>
|
||||
<div class="flex flex-row gap-4">
|
||||
<button
|
||||
v-if="can('create', 'settings', 'communication_type')"
|
||||
v-if="can('create', 'configuration', 'communication_type')"
|
||||
primary
|
||||
class="!w-fit"
|
||||
@click="openCreateModal"
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
</div>
|
||||
<div class="flex flex-row gap-4">
|
||||
<button
|
||||
v-if="can('create', 'settings', 'executive_position')"
|
||||
v-if="can('create', 'configuration', 'executive_position')"
|
||||
primary
|
||||
class="!w-fit"
|
||||
@click="openCreateModal"
|
||||
|
|
|
@ -11,7 +11,12 @@
|
|||
<MembershipStatusListItem v-for="status in membershipStatus" :key="status.id" :membershipStatus="status" />
|
||||
</div>
|
||||
<div class="flex flex-row gap-4">
|
||||
<button v-if="can('create', 'settings', 'membership_status')" primary class="!w-fit" @click="openCreateModal">
|
||||
<button
|
||||
v-if="can('create', 'configuration', 'membership_status')"
|
||||
primary
|
||||
class="!w-fit"
|
||||
@click="openCreateModal"
|
||||
>
|
||||
Mitgliedsstatus erstellen
|
||||
</button>
|
||||
</div>
|
||||
|
|
|
@ -15,7 +15,12 @@
|
|||
/>
|
||||
</div>
|
||||
<div class="flex flex-row gap-4">
|
||||
<button v-if="can('create', 'settings', 'qualification')" primary class="!w-fit" @click="openCreateModal">
|
||||
<button
|
||||
v-if="can('create', 'configuration', 'qualification')"
|
||||
primary
|
||||
class="!w-fit"
|
||||
@click="openCreateModal"
|
||||
>
|
||||
Qualifikation erstellen
|
||||
</button>
|
||||
</div>
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
</div>
|
||||
<div class="flex flex-row gap-4">
|
||||
<RouterLink
|
||||
v-if="can('create', 'settings', 'query_store')"
|
||||
v-if="can('create', 'configuration', 'query_store')"
|
||||
:to="{ name: 'admin-club-query_builder' }"
|
||||
button
|
||||
primary
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
<SalutationListItem v-for="salutation in salutations" :key="salutation.id" :salutation="salutation" />
|
||||
</div>
|
||||
<div class="flex flex-row gap-4">
|
||||
<button v-if="can('create', 'settings', 'salutation')" primary class="!w-fit" @click="openCreateModal">
|
||||
<button v-if="can('create', 'configuration', 'salutation')" primary class="!w-fit" @click="openCreateModal">
|
||||
Anrede erstellen
|
||||
</button>
|
||||
</div>
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
<TemplateListItem v-for="template in templates" :key="template.id" :template="template" />
|
||||
</div>
|
||||
<div class="flex flex-row gap-4">
|
||||
<button v-if="can('create', 'settings', 'template')" primary class="!w-fit" @click="openCreateModal">
|
||||
<button v-if="can('create', 'configuration', 'template')" primary class="!w-fit" @click="openCreateModal">
|
||||
Template erstellen
|
||||
</button>
|
||||
</div>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<BackupListItem v-for="backup in backups" :key="backup" :backup="backup" />
|
||||
</div>
|
||||
<div class="flex flex-row gap-4">
|
||||
<button v-if="can('create', 'user', 'backup')" primary class="!w-fit" @click="openCreateModal">
|
||||
<button v-if="can('create', 'management', 'backup')" primary class="!w-fit" @click="openCreateModal">
|
||||
Backup erstellen
|
||||
</button>
|
||||
</div>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<BackupListItem v-for="backup in backups" :key="backup" :backup="backup" />
|
||||
</div>
|
||||
<div class="flex flex-row gap-4">
|
||||
<button v-if="can('create', 'user', 'backup')" primary class="!w-fit" @click="openUploadModal">
|
||||
<button v-if="can('create', 'management', 'backup')" primary class="!w-fit" @click="openUploadModal">
|
||||
Backup hochladen
|
||||
</button>
|
||||
</div>
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
<RoleListItem v-for="role in roles" :key="role.id" :role="role" />
|
||||
</div>
|
||||
<div class="flex flex-row gap-4">
|
||||
<button v-if="can('create', 'user', 'role')" primary class="!w-fit" @click="openCreateModal">
|
||||
<button v-if="can('create', 'management', 'role')" primary class="!w-fit" @click="openCreateModal">
|
||||
Rolle erstellen
|
||||
</button>
|
||||
</div>
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
<UserListItem v-for="user in users" :key="user.id" :user="user" />
|
||||
</div>
|
||||
<div class="flex flex-row gap-4">
|
||||
<button v-if="can('create', 'user', 'user')" primary class="!w-fit" @click="inviteUser">
|
||||
<button v-if="can('create', 'management', 'user')" primary class="!w-fit" @click="inviteUser">
|
||||
Nutzer einladen
|
||||
</button>
|
||||
<RouterLink button primary-outline :to="{ name: 'admin-user-user-invites' }" class="!w-fit">
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
<WebapiListItem v-for="webapi in webapis" :key="webapi.id" :webapi="webapi" />
|
||||
</div>
|
||||
<div class="flex flex-row gap-4">
|
||||
<button v-if="can('create', 'user', 'webapi')" primary class="!w-fit" @click="openCreateModal">
|
||||
<button v-if="can('create', 'management', 'webapi')" primary class="!w-fit" @click="openCreateModal">
|
||||
Webapi-Token erstellen
|
||||
</button>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue