Mark inactive and active announcements for admin
This commit is contained in:
parent
1972e57ceb
commit
458ce54143
3 changed files with 33 additions and 5 deletions
|
|
@ -46,6 +46,9 @@ const Announcement = {
|
|||
}
|
||||
|
||||
return this.formatTimeOrDate(time, localeService.internalToBrowserLocale(this.$i18n.locale))
|
||||
},
|
||||
inactive () {
|
||||
return this.announcement.inactive
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
|
|
|||
|
|
@ -35,6 +35,8 @@
|
|||
v-if="currentUser"
|
||||
class="btn button-default"
|
||||
:class="{ toggled: isRead }"
|
||||
:disabled="inactive"
|
||||
:title="inactive ? $t('announcements.inactive_message') : ''"
|
||||
@click="markAsRead"
|
||||
>
|
||||
{{ $t('announcements.mark_as_read_action') }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue