Skip to content
Snippets Groups Projects
Commit 77d387d9 authored by Angelina Filippova's avatar Angelina Filippova
Browse files

Change success message

parent 6f3c8173
No related branches found
No related tags found
1 merge request!108Update security settings dialog on user's page
Pipeline #23948 passed
......@@ -47,6 +47,7 @@
</template>
<script>
import { Message } from 'element-ui'
export default {
name: 'SecuritySettingsModal',
......@@ -93,10 +94,10 @@ export default {
this.securitySettingsForm.isEmailLoading = true
await this.$store.dispatch('UpdateUserCredentials', { nickname: this.user.nickname, credentials })
this.securitySettingsForm.isEmailLoading = false
this.$notify.success({
title: this.$t('userProfile.securitySettings.success'),
Message({
message: this.$t('userProfile.securitySettings.emailUpdated'),
duration: 2000
type: 'success',
duration: 5 * 1000
})
},
async updatePassword() {
......@@ -105,10 +106,10 @@ export default {
await this.$store.dispatch('UpdateUserCredentials', { nickname: this.user.nickname, credentials })
this.securitySettingsForm.isPasswordLoading = false
this.securitySettingsForm.newPassword = ''
this.$notify.success({
title: this.$t('userProfile.securitySettings.success'),
Message({
message: this.$t('userProfile.securitySettings.passwordUpdated'),
duration: 2000
type: 'success',
duration: 5 * 1000
})
},
close() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment