From 31c056e8d340915864cc8afec1390ca472a0ea56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=A4fer?= Date: Sun, 10 Mar 2019 22:40:29 +0100 Subject: [PATCH] Display who disabled a resource --- graphql/ModerationListQuery.js | 12 ++++++++++++ locales/de.json | 3 ++- locales/en.json | 3 ++- pages/moderation/index.vue | 17 ++++++++++++++++- 4 files changed, 32 insertions(+), 3 deletions(-) diff --git a/graphql/ModerationListQuery.js b/graphql/ModerationListQuery.js index 8ae827d7f..23f032a90 100644 --- a/graphql/ModerationListQuery.js +++ b/graphql/ModerationListQuery.js @@ -15,6 +15,10 @@ export default app => { user { name slug + disabledBy { + slug + name + } } comment { contentExcerpt @@ -26,6 +30,10 @@ export default app => { title slug } + disabledBy { + slug + name + } } post { title @@ -34,6 +42,10 @@ export default app => { name slug } + disabledBy { + slug + name + } } } } diff --git a/locales/de.json b/locales/de.json index b578c2cda..9ddb42699 100644 --- a/locales/de.json +++ b/locales/de.json @@ -105,7 +105,8 @@ "reports": { "empty": "Glückwunsch, es gibt nichts zu moderieren.", "name": "Meldungen", - "submitter": "gemeldet von" + "submitter": "gemeldet von", + "disabledBy": "deaktiviert von" } }, "contribution": { diff --git a/locales/en.json b/locales/en.json index 98a82646b..58d6fd6e5 100644 --- a/locales/en.json +++ b/locales/en.json @@ -105,7 +105,8 @@ "reports": { "empty": "Congratulations, nothing to moderate.", "name": "Reports", - "submitter": "reported by" + "submitter": "reported by", + "disabledBy": "reported by" } }, "contribution": { diff --git a/pages/moderation/index.vue b/pages/moderation/index.vue index 209f8dcba..eeab52e4e 100644 --- a/pages/moderation/index.vue +++ b/pages/moderation/index.vue @@ -73,6 +73,20 @@ {{ scope.row.submitter.name }} +