feat: user profile page - save info + change pwd
This commit is contained in:
@@ -355,8 +355,12 @@ export default {
|
||||
},
|
||||
async saveAndClose() {
|
||||
try {
|
||||
await this.save({ rethrow: true })
|
||||
await this.exit()
|
||||
if (this.$store.get('editor/mode') === 'create') {
|
||||
await this.save()
|
||||
} else {
|
||||
await this.save({ rethrow: true })
|
||||
await this.exit()
|
||||
}
|
||||
} catch (err) {
|
||||
// Error is already handled
|
||||
}
|
||||
|
Reference in New Issue
Block a user