Merge branch 'fix/duplicated-success-message' into 'develop'

Remove duplicated success message

See merge request pleroma/admin-fe!75
This commit is contained in:
Maxim Filippov 2019-12-20 13:53:59 +00:00
commit 53a7ea3eee
3 changed files with 2 additions and 10 deletions

View file

@ -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 - Show checkmarks when tag is applied
- Reports update (also, now it's optimistic) - Reports update (also, now it's optimistic)
- Remove duplicated success message
## [1.2.0] - 2019-09-27 ## [1.2.0] - 2019-09-27

View file

@ -1,4 +1,3 @@
import { Message } from 'element-ui'
import { changeState, fetchReports, fetchGroupedReports, createNote, deleteNote } from '@/api/reports' import { changeState, fetchReports, fetchGroupedReports, createNote, deleteNote } from '@/api/reports'
const reports = { const reports = {
@ -117,13 +116,6 @@ const reports = {
}) })
commit('SET_REPORTS', updatedReports) commit('SET_REPORTS', updatedReports)
},
SuccessMessage(text) {
return Message({
message: text,
type: 'success',
duration: 5 * 1000
})
} }
} }
} }

View file

@ -263,9 +263,8 @@ const users = {
} }
}, },
SuccessMessage() { SuccessMessage() {
return Message({ Message.success({
message: i18n.t('users.completed'), message: i18n.t('users.completed'),
type: 'success',
duration: 5 * 1000 duration: 5 * 1000
}) })
}, },