Skip to content
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

Fix some silent share bugs #42067

Merged
merged 3 commits into from Dec 6, 2023
Merged

Fix some silent share bugs #42067

merged 3 commits into from Dec 6, 2023

Conversation

Fenn-CS
Copy link
Contributor

@Fenn-CS Fenn-CS commented Dec 6, 2023

Accessing this.$refs.shareList outside $nextTick() could lead to the holder (listComponent) being undefined as the ref is yet to exist.

Accessing `this.$refs.shareList` outside $nextTick()
 could lead to the holder (`listComponent`) being undefined
 as the ref is yet to exist.

Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
It's important to delete the `newPassword` prop from the share
 model, if the user unchecks the isPasswordProtected checkbox.

This clearer and allows for the unchecking to actually work as
`this.$set()` fails with the falsy value `''`.

Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
@Fenn-CS
Copy link
Contributor Author

Fenn-CS commented Dec 6, 2023

/compile

@Fenn-CS
Copy link
Contributor Author

Fenn-CS commented Dec 6, 2023

/backport to stable28

@Fenn-CS
Copy link
Contributor Author

Fenn-CS commented Dec 6, 2023

/backport to stable27

@Fenn-CS Fenn-CS changed the title Create element reference inside $nextTick() Fix some silent share bugs Dec 6, 2023
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
@Fenn-CS Fenn-CS merged commit 669cf65 into master Dec 6, 2023
41 checks passed
@Fenn-CS Fenn-CS deleted the share-flow-improvments branch December 6, 2023 23:26
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you removed some opening parenthesis and curly brace without removing their closing peer.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @artonge , please can you highlight the particular snippet? I can follow up with another PR, if need be.

@skjnldsv
Copy link
Member

/skjnldsv-backport 06314a3 e73a549 to stable27

@blizzz blizzz mentioned this pull request Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

[Bug]: awaitForShare: TypeError: n is undefined
6 participants