Web:Store:DiaglogStore: add new dialogs for changing owner and changing user name
This commit is contained in:
parent
9381f5783a
commit
48d5fb87c4
@ -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;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user