Web:Store:DiaglogStore: add new dialogs for changing owner and changing user name

This commit is contained in:
TimofeyBoyko 2022-08-29 17:28:47 +03:00
parent 9381f5783a
commit 48d5fb87c4

View File

@ -1,8 +1,10 @@
import { makeAutoObservable } from "mobx";
class DialogStore {
changeName = false;
changeEmail = false;
changePassword = false;
changeOwner = false;
deleteSelfProfile = false;
deleteProfileEver = false;
data = {};
@ -19,6 +21,10 @@ class DialogStore {
makeAutoObservable(this);
}
setChangeNameDialogVisible = (visible) => {
this.changeName = visible;
};
setChangeEmailDialogVisible = (visible) => {
this.changeEmail = visible;
};
@ -27,6 +33,10 @@ class DialogStore {
this.changePassword = visible;
};
setChangeOwnerDialogVisible = (visible) => {
this.changeOwner = visible;
};
setDeleteSelfProfileDialogVisible = (visible) => {
this.deleteSelfProfile = visible;
};