Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions apps/files_sharing/src/models/Share.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down Expand Up @@ -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
*
Expand Down
4 changes: 2 additions & 2 deletions dist/1598-1598.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/1598-1598.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/5638-5638.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/5638-5638.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/files_sharing-files_sharing_tab.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/files_sharing-files_sharing_tab.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/files_sharing-init.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/files_sharing-init.js.map

Large diffs are not rendered by default.

Loading