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

nfebe
Copy link
Contributor

@nfebe nfebe 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.

@nfebe nfebe force-pushed the share-flow-improvments branch from 3f7fd70 to 2e21938 Compare December 6, 2023 21:08
nfebe added 2 commits December 6, 2023 22:11
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>
@nfebe nfebe force-pushed the share-flow-improvments branch from 2e21938 to e73a549 Compare December 6, 2023 21:12
@nfebe nfebe marked this pull request as ready for review December 6, 2023 21:13
@nfebe
Copy link
Contributor Author

nfebe commented Dec 6, 2023

/compile

@nfebe
Copy link
Contributor Author

nfebe commented Dec 6, 2023

/backport to stable28

@nfebe
Copy link
Contributor Author

nfebe commented Dec 6, 2023

/backport to stable27

@nfebe nfebe 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>
@nfebe nfebe enabled auto-merge December 6, 2023 22:21
@nfebe nfebe merged commit 669cf65 into master Dec 6, 2023
41 checks passed
@nfebe nfebe 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