Only copy the link when updating a share or no password was forced
Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
This commit is contained in:
parent
165905ade5
commit
2215cbc352
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -686,7 +686,11 @@ export default {
|
|||
// Execute the copy link method
|
||||
// freshly created share component
|
||||
// ! somehow does not works on firefox !
|
||||
if (update || !this.config.enforcePasswordForPublicLink) {
|
||||
// Only copy the link when the password was not forced,
|
||||
// otherwise the user needs to copy/paste the password before finishing the share.
|
||||
component.copyLink()
|
||||
}
|
||||
|
||||
} catch ({ response }) {
|
||||
const message = response.data.ocs.meta.message
|
||||
|
|
Loading…
Reference in New Issue