From 3c9778ff2548535ec7eb435513edee0937282e72 Mon Sep 17 00:00:00 2001 From: Maxim Filippov Date: Fri, 20 Dec 2019 16:51:54 +0300 Subject: [PATCH] Remove duplicated success message --- CHANGELOG.md | 1 + src/store/modules/reports.js | 8 -------- src/store/modules/users.js | 3 +-- 3 files changed, 2 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9026cec5..e368ae70 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -30,6 +30,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - Show checkmarks when tag is applied - Reports update (also, now it's optimistic) +- Remove duplicated success message ## [1.2.0] - 2019-09-27 diff --git a/src/store/modules/reports.js b/src/store/modules/reports.js index f64c520d..c1b07b51 100644 --- a/src/store/modules/reports.js +++ b/src/store/modules/reports.js @@ -1,4 +1,3 @@ -import { Message } from 'element-ui' import { changeState, fetchReports, fetchGroupedReports, createNote, deleteNote } from '@/api/reports' const reports = { @@ -117,13 +116,6 @@ const reports = { }) commit('SET_REPORTS', updatedReports) - }, - SuccessMessage(text) { - return Message({ - message: text, - type: 'success', - duration: 5 * 1000 - }) } } } diff --git a/src/store/modules/users.js b/src/store/modules/users.js index 004bcdff..1f10b6c4 100644 --- a/src/store/modules/users.js +++ b/src/store/modules/users.js @@ -263,9 +263,8 @@ const users = { } }, SuccessMessage() { - return Message({ + Message.success({ message: i18n.t('users.completed'), - type: 'success', duration: 5 * 1000 }) },