move shared access option above permissions lists
This commit is contained in:
parent
f8c90c6d18
commit
cc3076d6d2
1 changed files with 18 additions and 18 deletions
|
|
@ -46,6 +46,24 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
<option value="user">{{ i18n.ts._ranks.user }}</option>
|
<option value="user">{{ i18n.ts._ranks.user }}</option>
|
||||||
</MkSelect>
|
</MkSelect>
|
||||||
|
|
||||||
|
<MkFolder v-if="enableSharedAccess !== false" :defaultOpen="enableSharedAccess === true">
|
||||||
|
<template #label>{{ i18n.ts.sharedAccess }}</template>
|
||||||
|
<template #suffix>{{ grantees.length || i18n.ts.none }}</template>
|
||||||
|
|
||||||
|
<div class="_gaps_s">
|
||||||
|
<div>{{ i18n.ts.sharedAccessDescription }}</div>
|
||||||
|
|
||||||
|
<MkButton primary @click="addGrantee">
|
||||||
|
<i class="ti ti-plus"></i> {{ i18n.ts.addGrantee }}
|
||||||
|
</MkButton>
|
||||||
|
|
||||||
|
<div v-for="(grantee, i) of grantees" :key="grantee.id" :class="$style.grantee">
|
||||||
|
<MkUserCardMini :user="grantee" :withChart="false"/>
|
||||||
|
<button v-tooltip="i18n.ts.removeGrantee" class="_textButton" @click="() => removeGrantee(i)"><i class="ti ti-x"></i></button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</MkFolder>
|
||||||
|
|
||||||
<MkFolder>
|
<MkFolder>
|
||||||
<template #label>{{ i18n.ts.permission }}</template>
|
<template #label>{{ i18n.ts.permission }}</template>
|
||||||
<template #suffix>{{ permsCount || i18n.ts.none }}</template>
|
<template #suffix>{{ permsCount || i18n.ts.none }}</template>
|
||||||
|
|
@ -84,24 +102,6 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
</MkSwitch>
|
</MkSwitch>
|
||||||
</div>
|
</div>
|
||||||
</MkFolder>
|
</MkFolder>
|
||||||
|
|
||||||
<MkFolder v-if="enableSharedAccess !== false" :defaultOpen="enableSharedAccess === true">
|
|
||||||
<template #label>{{ i18n.ts.sharedAccess }}</template>
|
|
||||||
<template #suffix>{{ grantees.length || i18n.ts.none }}</template>
|
|
||||||
|
|
||||||
<div class="_gaps_s">
|
|
||||||
<div>{{ i18n.ts.sharedAccessDescription }}</div>
|
|
||||||
|
|
||||||
<MkButton primary @click="addGrantee">
|
|
||||||
<i class="ti ti-plus"></i> {{ i18n.ts.addGrantee }}
|
|
||||||
</MkButton>
|
|
||||||
|
|
||||||
<div v-for="(grantee, i) of grantees" :key="grantee.id" :class="$style.grantee">
|
|
||||||
<MkUserCardMini :user="grantee" :withChart="false"/>
|
|
||||||
<button v-tooltip="i18n.ts.removeGrantee" class="_textButton" @click="() => removeGrantee(i)"><i class="ti ti-x"></i></button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</MkFolder>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</MkModalWindow>
|
</MkModalWindow>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue