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:
Luka Trovic
2025-06-18 17:17:11 +02:00
committed by backportbot[bot]
parent 31146484ce
commit 3f39605e53
3 changed files with 35 additions and 6 deletions

View File

@@ -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')
},