|
|
@ -105,22 +105,22 @@ |
|
|
|
<DataTable |
|
|
|
<DataTable |
|
|
|
v-model:filters="filters" |
|
|
|
v-model:filters="filters" |
|
|
|
v-model:selection="selectedItems" |
|
|
|
v-model:selection="selectedItems" |
|
|
|
:globalFilterFields="['title', 'sendDate']" |
|
|
|
:global-filter-fields="['title', 'sendDate']" |
|
|
|
:lazy="true" |
|
|
|
:lazy="true" |
|
|
|
:loading="isLoading" |
|
|
|
:loading="isLoading" |
|
|
|
:paginator="true" |
|
|
|
:paginator="true" |
|
|
|
:rows="10" |
|
|
|
:rows="10" |
|
|
|
:rowsPerPageOptions="[5, 10, 20, 50]" |
|
|
|
:rows-per-page-options="[5, 10, 20, 50]" |
|
|
|
:totalRecords="totalItems" |
|
|
|
:totalRecords="totalItems" |
|
|
|
:value="items" |
|
|
|
:value="items" |
|
|
|
class="p-datatable-sm" |
|
|
|
class="p-datatable-sm" |
|
|
|
currentPageReportTemplate="Showing {first} to {last} of {totalRecords}" |
|
|
|
current-page-report-template="Showing {first} to {last} of {totalRecords}" |
|
|
|
dataKey="id" |
|
|
|
dataKey="id" |
|
|
|
filterDisplay="menu" |
|
|
|
filter-display="menu" |
|
|
|
paginatorTemplate="CurrentPageReport FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink RowsPerPageDropdown" |
|
|
|
paginator-template="CurrentPageReport FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink RowsPerPageDropdown" |
|
|
|
responsiveLayout="scroll" |
|
|
|
responsive-layout="scroll" |
|
|
|
sortBy="sendDate" |
|
|
|
sortBy="sendDate" |
|
|
|
sortOrder="asc" |
|
|
|
sort-order="asc" |
|
|
|
@page="onPage($event)" |
|
|
|
@page="onPage($event)" |
|
|
|
@sort="sortingChanged($event)"> |
|
|
|
@sort="sortingChanged($event)"> |
|
|
|
|
|
|
|
|
|
|
@ -205,8 +205,13 @@ |
|
|
|
|
|
|
|
|
|
|
|
<!-- Dialogs--> |
|
|
|
<!-- Dialogs--> |
|
|
|
|
|
|
|
|
|
|
|
<Dialog v-model:visible="itemDialog" :header="$t('New folder')" :modal="true" :style="{width: '450px'}" |
|
|
|
<Dialog |
|
|
|
class="p-fluid"> |
|
|
|
v-model:visible="itemDialog" |
|
|
|
|
|
|
|
:header="$t('New folder')" |
|
|
|
|
|
|
|
:modal="true" |
|
|
|
|
|
|
|
:style="{width: '450px'}" |
|
|
|
|
|
|
|
class="p-fluid" |
|
|
|
|
|
|
|
> |
|
|
|
<div class="p-field"> |
|
|
|
<div class="p-field"> |
|
|
|
<label for="name">{{ $t('Name') }}</label> |
|
|
|
<label for="name">{{ $t('Name') }}</label> |
|
|
|
<InputText |
|
|
|
<InputText |
|
|
@ -217,23 +222,53 @@ |
|
|
|
autofocus |
|
|
|
autofocus |
|
|
|
required="true" |
|
|
|
required="true" |
|
|
|
/> |
|
|
|
/> |
|
|
|
<small v-if="submitted && !item.title" class="p-error">$t('Title is required')</small> |
|
|
|
<small |
|
|
|
|
|
|
|
v-if="submitted && !item.title" |
|
|
|
|
|
|
|
class="p-error" |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
$t('Title is required') |
|
|
|
|
|
|
|
</small> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<template #footer> |
|
|
|
<template #footer> |
|
|
|
<Button class="p-button-text" icon="pi pi-times" label="Cancel" @click="hideDialog"/> |
|
|
|
<Button |
|
|
|
<Button class="p-button-text" icon="pi pi-check" label="Save" @click="saveItem"/> |
|
|
|
class="p-button-text" |
|
|
|
|
|
|
|
icon="pi pi-times" |
|
|
|
|
|
|
|
label="Cancel" |
|
|
|
|
|
|
|
@click="hideDialog" |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
<Button |
|
|
|
|
|
|
|
class="p-button-text" |
|
|
|
|
|
|
|
icon="pi pi-check" |
|
|
|
|
|
|
|
label="Save" |
|
|
|
|
|
|
|
@click="saveItem" |
|
|
|
|
|
|
|
/> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</Dialog> |
|
|
|
</Dialog> |
|
|
|
|
|
|
|
|
|
|
|
<Dialog v-model:visible="deleteItemDialog" :modal="true" :style="{width: '450px'}" header="Confirm"> |
|
|
|
<Dialog |
|
|
|
|
|
|
|
v-model:visible="deleteItemDialog" |
|
|
|
|
|
|
|
:modal="true" |
|
|
|
|
|
|
|
:style="{width: '450px'}" |
|
|
|
|
|
|
|
header="Confirm" |
|
|
|
|
|
|
|
> |
|
|
|
<div class="confirmation-content"> |
|
|
|
<div class="confirmation-content"> |
|
|
|
<i class="pi pi-exclamation-triangle p-mr-3" style="font-size: 2rem" /> |
|
|
|
<i class="pi pi-exclamation-triangle p-mr-3" style="font-size: 2rem" /> |
|
|
|
<span v-if="item">Are you sure you want to delete <b>{{ item.title }}</b>?</span> |
|
|
|
<span v-if="item">Are you sure you want to delete <b>{{ item.title }}</b>?</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<template #footer> |
|
|
|
<template #footer> |
|
|
|
<Button class="p-button-text" icon="pi pi-times" label="No" @click="deleteItemDialog = false"/> |
|
|
|
<Button |
|
|
|
<Button class="p-button-text" icon="pi pi-check" label="Yes" @click="deleteItemButton(item)"/> |
|
|
|
class="p-button-text" |
|
|
|
|
|
|
|
icon="pi pi-times" |
|
|
|
|
|
|
|
label="No" |
|
|
|
|
|
|
|
@click="deleteItemDialog = false" |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
<Button |
|
|
|
|
|
|
|
class="p-button-text" |
|
|
|
|
|
|
|
icon="pi pi-check" |
|
|
|
|
|
|
|
label="Yes" |
|
|
|
|
|
|
|
@click="deleteItemButton(item)" |
|
|
|
|
|
|
|
/> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</Dialog> |
|
|
|
</Dialog> |
|
|
|
|
|
|
|
|
|
|
@ -243,8 +278,18 @@ |
|
|
|
<span v-if="item">Are you sure you want to delete the selected items?</span> |
|
|
|
<span v-if="item">Are you sure you want to delete the selected items?</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<template #footer> |
|
|
|
<template #footer> |
|
|
|
<Button class="p-button-text" icon="pi pi-times" label="No" @click="deleteMultipleDialog = false"/> |
|
|
|
<Button |
|
|
|
<Button class="p-button-text" icon="pi pi-check" label="Yes" @click="deleteMultipleItems"/> |
|
|
|
class="p-button-text" |
|
|
|
|
|
|
|
icon="pi pi-times" |
|
|
|
|
|
|
|
label="No" |
|
|
|
|
|
|
|
@click="deleteMultipleDialog = false" |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
<Button |
|
|
|
|
|
|
|
class="p-button-text" |
|
|
|
|
|
|
|
icon="pi pi-check" |
|
|
|
|
|
|
|
label="Yes" |
|
|
|
|
|
|
|
@click="deleteMultipleItems" |
|
|
|
|
|
|
|
/> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</Dialog> |
|
|
|
</Dialog> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|