|
1 | | -<div class="container"> |
| 1 | +<div class="container vstack gap-3"> |
2 | 2 | <!-- Action Menu --> |
3 | | - <div |
4 | | - class="row justify-content-end mb-3 animate__animated animate__slideInUp"> |
5 | | - {#if $notifications.length !== 0} |
6 | | - <div class="col-auto"> |
| 3 | + <PageActions leftClasses="d-lg-flex d-none" middleClasses="d-lg-flex d-none"> |
| 4 | + <div slot="right"> |
| 5 | + {#if $notifications.length !== 0} |
7 | 6 | <button |
8 | 7 | type="button" |
9 | | - class="btn btn-danger" |
10 | | - on:click="{() => onDeleteAllClick(notificationProcessID, interval)}" |
11 | | - >{$_("pages.notifications.delete-all-button")} |
| 8 | + class="btn btn-secondary" |
| 9 | + on:click={() => onDeleteAllClick(notificationProcessID, interval)}> |
| 10 | + <i class="fa fa-minus me-2"></i> |
| 11 | + {$_("pages.notifications.delete-all-button")} |
12 | 12 | </button> |
13 | | - </div> |
14 | | - {/if} |
15 | | - </div> |
| 13 | + {/if} |
| 14 | + </div> |
| 15 | + </PageActions> |
16 | 16 |
|
17 | 17 | <!-- All Notifications --> |
18 | 18 |
|
19 | 19 | <div class="card"> |
20 | | - <div class="card-body"> |
21 | | - <h3 class="card-title"> |
22 | | - {$_("navbar.notifications.title")} |
23 | | - </h3> |
| 20 | + <div class="card-header">{$_('navbar.notifications.title')}</div> |
| 21 | + <div class="card-body vstack gap-3" class:d-none="{$notifications.length === 0}"> |
24 | 22 | <div class="list-group" class:d-none="{$notifications.length === 0}"> |
25 | 23 | {#each $notifications as notification, index (notification)} |
26 | 24 | <div |
|
75 | 73 | </div> |
76 | 74 | {/each} |
77 | 75 | </div> |
| 76 | + </div> |
78 | 77 |
|
79 | 78 | {#if $notifications.length === 0} |
80 | 79 | <NoContent /> |
|
92 | 91 | </button> |
93 | 92 | </div> |
94 | 93 | {/if} |
95 | | - </div> |
96 | 94 | </div> |
97 | 95 | </div> |
98 | 96 |
|
|
127 | 125 |
|
128 | 126 | import ConfirmRemoveAllNotificationsModal from "$lib/component/modals/ConfirmRemoveAllNotificationsModal.svelte"; |
129 | 127 | import NoContent from "$lib/component/NoContent.svelte"; |
| 128 | + import PageActions from "$lib/component/PageActions.svelte"; |
130 | 129 |
|
131 | 130 | export let data; |
132 | 131 |
|
|
0 commit comments