Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/board/Stack.vue
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
nonDragAreaSelector=".dragDisabled"
:dragHandleSelector="dragHandleSelector"
data-dragscroll-enabled
:shouldAcceptDrop="() => canEdit"
:shouldAcceptDrop="(sourceOptions) => canEdit && sourceOptions.groupName === 'stack'"
@dragStart="draggingCard = true"
@dragEnd="draggingCard = false"
@drop="($event) => onDropCard(stack.id, $event)">
Expand Down
2 changes: 1 addition & 1 deletion src/components/navigation/AppNavigationBoard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ export default {
this.$router.push({ name: 'board', params: { id: newBoard.id } })
} catch (e) {
logger.error('Failed to clone board', { error: e })
OC.Notification.showTemporary(t('deck', 'An error occurred'))
showError(t('deck', 'An error occurred'))
}
}
},
Expand Down
3 changes: 2 additions & 1 deletion src/services/SharingApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*/

import axios from '@nextcloud/axios'
import { showError } from '@nextcloud/dialogs'
import { generateOcsUrl } from '@nextcloud/router'
import logger from '../logger.js'

Expand All @@ -18,7 +19,7 @@ async function createShare({ path, permissions, shareType, shareWith, publicUplo
return request
} catch (error) {
logger.error('Error while creating share', { error })
OC.Notification.showTemporary(t('files_sharing', 'Error creating the share'), { type: 'error' })
showError(t('files_sharing', 'Error creating the share'))
throw error
}
}
Expand Down
3 changes: 2 additions & 1 deletion src/stores/stack.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* SPDX-License-Identifier: AGPL-3.0-or-later
*/

import { showError } from '@nextcloud/dialogs'
import { defineStore } from 'pinia'
import applyOrderToArray from '../helpers/applyOrderToArray.js'
import logger from '../logger.js'
Expand Down Expand Up @@ -42,7 +43,7 @@ export const useStackStore = defineStore('stack', {
}
apiClient.reorderStack(stack.id, addedIndex, stack.boardId)
.catch((err) => {
OC.Notification.showTemporary('Failed to change order')
showError('Failed to change order')
logger.error('Failed to reorder stack', { error: err })

// restore old order
Expand Down