mirror of
https://framagit.org/framasoft/mobilizon.git
synced 2024-12-22 07:52:43 +00:00
Merge branch 'show-draft-status-in-admin' into 'master'
Show draft status in admin Closes #413 See merge request framasoft/mobilizon!734
This commit is contained in:
commit
1ed6fbae4e
4 changed files with 9 additions and 4 deletions
|
@ -84,7 +84,6 @@ export const GROUP_FIELDS_FRAGMENTS = gql`
|
|||
id
|
||||
url
|
||||
}
|
||||
mediaSize
|
||||
organizedEvents(
|
||||
afterDatetime: $afterDateTime
|
||||
beforeDatetime: $beforeDateTime
|
||||
|
@ -96,6 +95,7 @@ export const GROUP_FIELDS_FRAGMENTS = gql`
|
|||
uuid
|
||||
title
|
||||
beginsOn
|
||||
draft
|
||||
options {
|
||||
maximumAttendeeCapacity
|
||||
}
|
||||
|
@ -213,6 +213,7 @@ export const GET_GROUP = gql`
|
|||
$organisedEventslimit: Int
|
||||
) {
|
||||
getGroup(id: $id) {
|
||||
mediaSize
|
||||
...GroupFullFields
|
||||
}
|
||||
}
|
||||
|
|
|
@ -8,6 +8,7 @@ export const POST_FRAGMENT = gql`
|
|||
slug
|
||||
url
|
||||
body
|
||||
draft
|
||||
author {
|
||||
id
|
||||
preferredUsername
|
||||
|
|
|
@ -9,7 +9,6 @@ const DEFAULT_LOCALE = "en_US";
|
|||
|
||||
let language =
|
||||
getLocaleData() || (document.documentElement.getAttribute("lang") as string);
|
||||
console.log("lang1", language);
|
||||
|
||||
language =
|
||||
language ||
|
||||
|
@ -17,14 +16,12 @@ language =
|
|||
/-/,
|
||||
"_"
|
||||
);
|
||||
console.log("language2", language);
|
||||
|
||||
export const locale =
|
||||
language && Object.prototype.hasOwnProperty.call(langs, language)
|
||||
? language
|
||||
: language.split("-")[0];
|
||||
|
||||
console.log("lang3", locale);
|
||||
Vue.use(VueI18n);
|
||||
|
||||
export const i18n = new VueI18n({
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue