Show draft status on events and posts in group admin

Closes #413

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2020-12-01 09:55:24 +01:00
parent def6df690d
commit ac8856f08c
No known key found for this signature in database
GPG Key ID: A061B9DDE0CA0773
3 changed files with 8 additions and 0 deletions

View File

@ -96,6 +96,7 @@ export const GROUP_FIELDS_FRAGMENTS = gql`
uuid
title
beginsOn
draft
options {
maximumAttendeeCapacity
}

View File

@ -8,6 +8,7 @@ export const POST_FRAGMENT = gql`
slug
url
body
draft
author {
id
preferredUsername

View File

@ -200,6 +200,9 @@
:to="{ name: RouteName.EVENT, params: { uuid: props.row.uuid } }"
>
{{ props.row.title }}
<b-tag type="is-info" v-if="props.row.draft">{{
$t("Draft")
}}</b-tag>
</router-link>
</b-table-column>
<b-table-column
@ -240,6 +243,9 @@
:to="{ name: RouteName.POST, params: { slug: props.row.slug } }"
>
{{ props.row.title }}
<b-tag type="is-info" v-if="props.row.draft">{{
$t("Draft")
}}</b-tag>
</router-link>
</b-table-column>
<b-table-column