From 7a0180c727184afaec6d89d3e576ca24ac8053e8 Mon Sep 17 00:00:00 2001 From: Angelina Filippova Date: Fri, 24 May 2019 14:46:23 +0200 Subject: [PATCH] Extract statuses into separate file --- src/lang/en.js | 12 ++- src/views/reports/components/Statuses.vue | 96 +++++++++++++++++++ src/views/reports/components/TimelineItem.vue | 55 ++--------- 3 files changed, 114 insertions(+), 49 deletions(-) create mode 100644 src/views/reports/components/Statuses.vue diff --git a/src/lang/en.js b/src/lang/en.js index 9f9b248c..d2476cdf 100644 --- a/src/lang/en.js +++ b/src/lang/en.js @@ -213,7 +213,17 @@ export default { deleteCompleted: 'Delete comleted', deleteCanceled: 'Delete canceled', noNotes: 'No notes to display', - changeState: 'Change state' + changeState: 'Change state', + changeScope: 'Change scope', + resolve: 'Resolve', + reopen: 'Reopen', + close: 'Close', + addSensitive: 'Add Sensitive flag', + removeSensitive: 'Remove Sensitive flag', + public: 'Make status public', + private: 'Make status private', + unlisted: 'Make status unlisted', + sensitive: 'Sensitive' }, reportsFilter: { inputPlaceholder: 'Select filter', diff --git a/src/views/reports/components/Statuses.vue b/src/views/reports/components/Statuses.vue new file mode 100644 index 00000000..c073d4d9 --- /dev/null +++ b/src/views/reports/components/Statuses.vue @@ -0,0 +1,96 @@ + + + + + diff --git a/src/views/reports/components/TimelineItem.vue b/src/views/reports/components/TimelineItem.vue index 1e4b531a..65e19d6d 100644 --- a/src/views/reports/components/TimelineItem.vue +++ b/src/views/reports/components/TimelineItem.vue @@ -5,12 +5,12 @@

Report on {{ report.account.display_name }}

{{ capitalizeFirstLetter(report.state) }} - + {{ $t('reports.changeState') }} - Resolve - Reopen - Close + {{ $t('reports.resolve') }} + {{ $t('reports.reopen') }} + {{ $t('reports.close') }}
@@ -46,25 +46,7 @@
- - -
-
- User's avatar - -
- -
- -
-
+
@@ -74,9 +56,11 @@