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:
parent
def6df690d
commit
ac8856f08c
|
@ -96,6 +96,7 @@ export const GROUP_FIELDS_FRAGMENTS = gql`
|
||||||
uuid
|
uuid
|
||||||
title
|
title
|
||||||
beginsOn
|
beginsOn
|
||||||
|
draft
|
||||||
options {
|
options {
|
||||||
maximumAttendeeCapacity
|
maximumAttendeeCapacity
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,6 +8,7 @@ export const POST_FRAGMENT = gql`
|
||||||
slug
|
slug
|
||||||
url
|
url
|
||||||
body
|
body
|
||||||
|
draft
|
||||||
author {
|
author {
|
||||||
id
|
id
|
||||||
preferredUsername
|
preferredUsername
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue