This commit is contained in:
Henry Jameson 2022-08-17 00:49:07 +03:00
parent d074aefb4f
commit 77dcbe641c
2 changed files with 33 additions and 25 deletions

View File

@ -14,11 +14,13 @@
/> />
</button> </button>
<div class="title"> <div class="title">
<i18n-t <i18n-t
keypath="lists.editing_list" keypath="lists.editing_list"
> >
<template #listTitle>{{ title }}</template> <template #listTitle>
</i18n-t> {{ title }}
</template>
</i18n-t>
</div> </div>
</div> </div>
<div class="panel-body"> <div class="panel-body">
@ -40,11 +42,11 @@
<tab-switcher <tab-switcher
class="list-member-management" class="list-member-management"
:scrollable-tabs="true" :scrollable-tabs="true"
> >
<div <div
:label="$t('lists.manage_members')" :label="$t('lists.manage_members')"
class="members-list" class="members-list"
> >
<div class="users-list"> <div class="users-list">
<div <div
v-for="user in membersUsers" v-for="user in membersUsers"
@ -68,16 +70,22 @@
<div <div
class="search-list" class="search-list"
:label="$t('lists.add_members')" :label="$t('lists.add_members')"
> >
<ListsUserSearch <ListsUserSearch
@results="onSearchResults" @results="onSearchResults"
@loading="onSearchLoading" @loading="onSearchLoading"
@loadingDone="onSearchLoadingDone" @loadingDone="onSearchLoadingDone"
/> />
<div v-if="searchLoading" class="loading"> <div
v-if="searchLoading"
class="loading"
>
<PanelLoading /> <PanelLoading />
</div> </div>
<div v-else class="users-list"> <div
v-else
class="users-list"
>
<div <div
v-for="user in searchUsers" v-for="user in searchUsers"
:key="user.id" :key="user.id"
@ -114,9 +122,9 @@
<div class="panel-footer"> <div class="panel-footer">
<span class="spacer" /> <span class="spacer" />
<button <button
v-if="!reallyDelete"
class="btn button-default delete-button" class="btn button-default delete-button"
@click="reallyDelete = true" @click="reallyDelete = true"
v-if="!reallyDelete"
> >
{{ $t('lists.delete') }} {{ $t('lists.delete') }}
</button> </button>
@ -126,13 +134,13 @@
class="btn button-default delete-button" class="btn button-default delete-button"
@click="deleteList" @click="deleteList"
> >
{{ $t('general.yes') }} {{ $t('general.yes') }}
</button> </button>
<button <button
class="btn button-default delete-button" class="btn button-default delete-button"
@click="reallyDelete = false" @click="reallyDelete = false"
> >
{{ $t('general.no') }} {{ $t('general.no') }}
</button> </button>
</template> </template>
</div> </div>

View File

@ -7,18 +7,18 @@
> >
<template #content> <template #content>
<div class="dropdown-menu"> <div class="dropdown-menu">
<button <button
v-for="list in lists" v-for="list in lists"
:key="list.id" :key="list.id"
class="button-default dropdown-item" class="button-default dropdown-item"
@click="toggleList(list.id)" @click="toggleList(list.id)"
> >
<span <span
class="menu-checkbox" class="menu-checkbox"
:class="{ 'menu-checkbox-checked': list.inList }" :class="{ 'menu-checkbox-checked': list.inList }"
/> />
{{ list.title }} {{ list.title }}
</button> </button>
</div> </div>
</template> </template>
<template #trigger> <template #trigger>