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 uuid
title title
beginsOn beginsOn
draft
options { options {
maximumAttendeeCapacity maximumAttendeeCapacity
} }

View file

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

View file

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