-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added locked error message #9940
Added locked error message #9940
Conversation
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We already have some error handling in place here: https://github.com/owncloud/web/blob/master/packages/web-runtime/src/components/UploadInfo.vue#L630. Could you please add it there?
Also, please add a changelog item 🙂
Edit: Pipeline seems to fail because of some unrelated change, rebasing with current master should fix it though.
Not able to move the error message. I'm getting null responseCode there. |
I see. Can you maybe retrieve the error for the file via |
Fully agree UX-wise. The error in the title section of the upload info widget needs to stay short. |
What would convey the message properly?
|
But you still have 2 places where you check for errors. Title of the window and then individual items. |
Something like this? @JammingBen @kulmann |
@@ -626,6 +630,9 @@ export default defineComponent({ | |||
} | |||
|
|||
const errorObject = formatErrorMessageToObject(error.message) | |||
if (this.errors[item.meta.uploadId]?.statusCode === 423) { | |||
return this.$gettext('Upload folder is locked') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep, works for me 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice 👍
Needs another rebase with current master though, there have been quite a few pipeline changes recently.
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
* added locked error message * updated locked error message * removed title locked error message, added changelog * updated locked error message text * lint fix locked error message text
Description
Added error message in failed attempt of uploading to locked folder
Related Issue
Screenshots:
Types of changes
Checklist: