diff --git a/CHANGELOG.md b/CHANGELOG.md index bb1790cc..d7a6de16 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,12 +14,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - Add Unconfimed filter for Users table - Filter users by actor type: Person, Bot or Application - Add ability to configure Media Preview Proxy, User Backup and Websocket based federation settings - +- Mobile and Tablet UI for Single Report show page ### Changed - Hide Tag actions on Users tab if MRF TagPolicy is disabled. Add ability to enable TagPolicy from Moderation menu - Move `:restrict_unauthenticated` settings from Authentication tab to Instance tab - Replace regular inputs with textareas for setting welcome messages in the Settings section +- Update rendering Moderation Log Messages so that all usernames are links to the pages of the corresponding users in Admin-FE ### Fixed diff --git a/src/store/modules/reports.js b/src/store/modules/reports.js index c42fa894..2589daa4 100644 --- a/src/store/modules/reports.js +++ b/src/store/modules/reports.js @@ -12,6 +12,7 @@ const reports = { currentPage: 1, fetchedReports: [], loading: true, + loadingSingleReport: true, openReportsCount: 0, pageSize: 50, singleReport: {}, @@ -42,6 +43,9 @@ const reports = { }, SET_SINGLE_REPORT: (state, report) => { state.singleReport = report + }, + SET_SINGLE_REPORT_LOADING: (state, status) => { + state.loadingSingleReport = status } }, actions: { @@ -162,11 +166,11 @@ const reports = { commit('SET_LOADING', false) }, async FetchSingleReport({ commit, getters }, id) { - commit('SET_LOADING', true) + commit('SET_SINGLE_REPORT_LOADING', true) const { data } = await fetchSingleReport(id, getters.authHost, getters.token) commit('SET_SINGLE_REPORT', data) - commit('SET_LOADING', false) + commit('SET_SINGLE_REPORT_LOADING', false) }, async FetchOpenReportsCount({ commit, getters, state }) { commit('SET_LOADING', true) diff --git a/src/views/moderation_log/LogEntryMessage.vue b/src/views/moderation_log/LogEntryMessage.vue deleted file mode 100644 index d19ada81..00000000 --- a/src/views/moderation_log/LogEntryMessage.vue +++ /dev/null @@ -1,65 +0,0 @@ - - - - - diff --git a/src/views/moderation_log/ReportLink.vue b/src/views/moderation_log/ReportLink.vue new file mode 100644 index 00000000..bfbd210a --- /dev/null +++ b/src/views/moderation_log/ReportLink.vue @@ -0,0 +1,20 @@ + + + diff --git a/src/views/moderation_log/UserLink.vue b/src/views/moderation_log/UserLink.vue new file mode 100644 index 00000000..77ab82a4 --- /dev/null +++ b/src/views/moderation_log/UserLink.vue @@ -0,0 +1,20 @@ + + + diff --git a/src/views/moderation_log/index.vue b/src/views/moderation_log/index.vue index 283bf4d2..c8c350c4 100644 --- a/src/views/moderation_log/index.vue +++ b/src/views/moderation_log/index.vue @@ -43,8 +43,7 @@ v-for="(logEntry, index) in log" :key="index" :timestamp="normalizeTimestamp(logEntry.time)"> - - {{ logEntry.message }} +