mirror of
https://github.com/nextcloud/server.git
synced 2026-05-22 10:06:37 -04:00
Merge pull request #60311 from nextcloud/fix/57011/share-password-reactivity
fix(files_sharing): apply link share password on first save
This commit is contained in:
commit
c359c37b3b
9 changed files with 28 additions and 12 deletions
|
|
@ -39,6 +39,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
|
||||
}
|
||||
|
|
@ -281,6 +285,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
|
||||
*
|
||||
|
|
|
|||
4
dist/1598-1598.js
vendored
4
dist/1598-1598.js
vendored
File diff suppressed because one or more lines are too long
2
dist/1598-1598.js.map
vendored
2
dist/1598-1598.js.map
vendored
File diff suppressed because one or more lines are too long
4
dist/5638-5638.js
vendored
4
dist/5638-5638.js
vendored
File diff suppressed because one or more lines are too long
2
dist/5638-5638.js.map
vendored
2
dist/5638-5638.js.map
vendored
File diff suppressed because one or more lines are too long
4
dist/files_sharing-files_sharing_tab.js
vendored
4
dist/files_sharing-files_sharing_tab.js
vendored
File diff suppressed because one or more lines are too long
2
dist/files_sharing-files_sharing_tab.js.map
vendored
2
dist/files_sharing-files_sharing_tab.js.map
vendored
File diff suppressed because one or more lines are too long
4
dist/files_sharing-init.js
vendored
4
dist/files_sharing-init.js
vendored
File diff suppressed because one or more lines are too long
2
dist/files_sharing-init.js.map
vendored
2
dist/files_sharing-init.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue