Bring back reboot button in reboot required notification
This commit is contained in:
@@ -123,8 +123,11 @@ onMounted(async () => {
|
||||
{{ notification.title }}
|
||||
<div class="notification-item-date">{{ prettyDate(notification.creationTime) }}</div>
|
||||
</div>
|
||||
<Button v-if="notification.acknowledged" class="read-state-button" plain secondary :disabled="notification.busy" @click.stop="onMarkNotificationUnread(notification)">{{ $t('notifications.markUnread') }}</Button>
|
||||
<Button v-else class="read-state-button" plain secondary :disabled="notification.busy" @click.stop="onMarkNotificationRead(notification)">{{ $t('notifications.markRead') }}</Button>
|
||||
<div class="read-state-button">
|
||||
<Button v-if="notification.type === 'reboot'" href="/#/server">{{ $t('main.action.reboot') }}</Button>
|
||||
<Button v-if="notification.acknowledged" plain secondary :disabled="notification.busy" @click.stop="onMarkNotificationUnread(notification)">{{ $t('notifications.markUnread') }}</Button>
|
||||
<Button v-else plain secondary :disabled="notification.busy" @click.stop="onMarkNotificationRead(notification)">{{ $t('notifications.markRead') }}</Button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="notification-item-message">
|
||||
<div style="cursor: auto; overflow: auto;" v-html="marked.parse(notification.message)"></div>
|
||||
@@ -201,10 +204,11 @@ onMounted(async () => {
|
||||
|
||||
.read-state-button {
|
||||
display: none;
|
||||
gap: 5px;
|
||||
}
|
||||
|
||||
.notification-item:hover .read-state-button {
|
||||
display: block;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user