about summary refs log tree commit diff
path: root/src/state/models/shell-ui.ts
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2022-11-14 15:55:38 -0600
committerPaul Frazee <pfrazee@gmail.com>2022-11-14 15:55:38 -0600
commit9170040acb3c85a11fcf29c832360c0765a1ba58 (patch)
tree5cb6a3850eaac1dfafb131d7508f0da0ae4150e8 /src/state/models/shell-ui.ts
parent96dc748733561affb9ee9f9d188b040cf5bb009e (diff)
downloadvoidsky-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.ts5
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)
   }
 }