fix: add retry and show warning on description saving error
Signed-off-by: Luka Trovic <luka@nextcloud.com> [skip ci]
This commit is contained in:
committed by
backportbot[bot]
parent
31146484ce
commit
3f39605e53
@@ -96,7 +96,7 @@ import HomeIcon from 'vue-material-design-icons/Home.vue'
|
||||
import CommentIcon from 'vue-material-design-icons/Comment.vue'
|
||||
import ActivityIcon from 'vue-material-design-icons/LightningBolt.vue'
|
||||
|
||||
import { showError } from '@nextcloud/dialogs'
|
||||
import { showError, showWarning } from '@nextcloud/dialogs'
|
||||
import { getLocale } from '@nextcloud/l10n'
|
||||
import CardMenuEntries from '../cards/CardMenuEntries.vue'
|
||||
|
||||
@@ -190,6 +190,10 @@ export default {
|
||||
},
|
||||
|
||||
closeSidebar() {
|
||||
if (this.hasCardSaveError) {
|
||||
showWarning(t('deck', 'Cannot close unsaved card!'))
|
||||
return
|
||||
}
|
||||
this.$router?.push({ name: 'board' })
|
||||
this.$emit('close')
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user