Merge pull request #60330 from nextcloud/backport/60311/stable32

[stable32] fix(files_sharing): apply link share password on first save
This commit is contained in:
Andy Scherzinger 2026-05-13 08:24:48 +02:00 committed by GitHub
commit b99a4373b9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 28 additions and 12 deletions

View file

@ -38,6 +38,10 @@ export default class Share {
}
ocsData.attributes = ocsData.attributes ?? []
// Pre-declared so Vue 2 makes newPassword reactive at observation time,
// avoiding $set's property-addition path which races with async setters.
ocsData.newPassword = ocsData.newPassword ?? undefined
// store state
this._share = ocsData
}
@ -278,6 +282,18 @@ export default class Share {
this._share.password = password
}
/**
* Unsaved password (set during share creation or editing).
* Delegates to _share so reads/writes go through the reactive state.
*/
get newPassword(): string | undefined {
return this._share.newPassword
}
set newPassword(value: string | undefined) {
this._share.newPassword = value
}
/**
* Password expiration time
* @return {string} date with YYYY-MM-DD format

4
dist/5819-5819.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

4
dist/9108-9108.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long