Merge branch 'develop'
Some checks failed
Spell Check / Spell Check with Typos (push) Failing after 8s
Some checks failed
Spell Check / Spell Check with Typos (push) Failing after 8s
This commit is contained in:
commit
5ec924fe14
1 changed files with 16 additions and 9 deletions
|
|
@ -94,21 +94,22 @@ onMounted(async () => {
|
||||||
<template>
|
<template>
|
||||||
<main class="column full-height no-wrap">
|
<main class="column full-height no-wrap">
|
||||||
<div class="surface-1 col bordered rounded column">
|
<div class="surface-1 col bordered rounded column">
|
||||||
<div class="q-px-lg q-py-xs row items-center">
|
<div class="q-py-xs row items-center" style="padding-inline: 38px">
|
||||||
<q-checkbox
|
<q-checkbox
|
||||||
size="xs"
|
size="xs"
|
||||||
:model-value="selectedNoti.length === noti.length"
|
:model-value="noti.length > 0 && selectedNoti.length === noti.length"
|
||||||
class="q-px-sm"
|
:disable="noti.length === 0"
|
||||||
@click="toggleSelection('', true)"
|
@click="toggleSelection('', true)"
|
||||||
/>
|
/>
|
||||||
|
<q-separator vertical inset spaced="md" />
|
||||||
<q-btn
|
<q-btn
|
||||||
v-if="selectedNoti.length === 0"
|
v-if="selectedNoti.length === 0"
|
||||||
icon="mdi-refresh"
|
icon="mdi-refresh"
|
||||||
rounded
|
rounded
|
||||||
flat
|
flat
|
||||||
dense
|
dense
|
||||||
size="xs"
|
size="sm"
|
||||||
class="app-text-muted-2 q-ml-sm q-mt-xs"
|
class="app-text-muted-2 q-mt-xs"
|
||||||
@click="async () => await fetchNoti()"
|
@click="async () => await fetchNoti()"
|
||||||
>
|
>
|
||||||
<q-tooltip>Refresh</q-tooltip>
|
<q-tooltip>Refresh</q-tooltip>
|
||||||
|
|
@ -119,8 +120,8 @@ onMounted(async () => {
|
||||||
rounded
|
rounded
|
||||||
flat
|
flat
|
||||||
dense
|
dense
|
||||||
size="xs"
|
size="sm"
|
||||||
class="app-text-muted-2 q-ml-sm"
|
class="app-text-muted-2"
|
||||||
@click="async () => await deleteNoti()"
|
@click="async () => await deleteNoti()"
|
||||||
>
|
>
|
||||||
<q-tooltip>{{ $t('general.delete') }}</q-tooltip>
|
<q-tooltip>{{ $t('general.delete') }}</q-tooltip>
|
||||||
|
|
@ -131,7 +132,7 @@ onMounted(async () => {
|
||||||
rounded
|
rounded
|
||||||
flat
|
flat
|
||||||
dense
|
dense
|
||||||
size="xs"
|
size="sm"
|
||||||
class="app-text-muted-2 q-mx-sm"
|
class="app-text-muted-2 q-mx-sm"
|
||||||
@click="async () => await markAsRead()"
|
@click="async () => await markAsRead()"
|
||||||
>
|
>
|
||||||
|
|
@ -177,7 +178,13 @@ onMounted(async () => {
|
||||||
<q-badge
|
<q-badge
|
||||||
rounded
|
rounded
|
||||||
class="q-ml-md"
|
class="q-ml-md"
|
||||||
style="background: hsl(var(--info-bg))"
|
:color="
|
||||||
|
(tab.value === 'all'
|
||||||
|
? noti.length
|
||||||
|
: noti.filter((v) => !v.read).length) > 0
|
||||||
|
? 'info'
|
||||||
|
: 'grey'
|
||||||
|
"
|
||||||
>
|
>
|
||||||
{{
|
{{
|
||||||
tab.value === 'all'
|
tab.value === 'all'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue