diff options
author | Paul Frazee <pfrazee@gmail.com> | 2022-11-14 15:55:38 -0600 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2022-11-14 15:55:38 -0600 |
commit | 9170040acb3c85a11fcf29c832360c0765a1ba58 (patch) | |
tree | 5cb6a3850eaac1dfafb131d7508f0da0ae4150e8 /src/state/models/shell-ui.ts | |
parent | 96dc748733561affb9ee9f9d188b040cf5bb009e (diff) | |
download | voidsky-9170040acb3c85a11fcf29c832360c0765a1ba58.tar.zst |
Update all state on profile change
Diffstat (limited to 'src/state/models/shell-ui.ts')
-rw-r--r-- | src/state/models/shell-ui.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/state/models/shell-ui.ts b/src/state/models/shell-ui.ts index 8eefc711c..cc884f1c3 100644 --- a/src/state/models/shell-ui.ts +++ b/src/state/models/shell-ui.ts @@ -42,7 +42,10 @@ export class SharePostModel { export class EditProfileModel { name = 'edit-profile' - constructor(public profileView: ProfileViewModel) { + constructor( + public profileView: ProfileViewModel, + public onUpdate?: () => void, + ) { makeAutoObservable(this) } } |