WIP minimize
This commit is contained in:
parent
3da5049dc7
commit
d4a58bdb2a
6 changed files with 108 additions and 75 deletions
|
@ -26,6 +26,7 @@ import { _t } from "../languageHandler";
|
|||
interface IState {
|
||||
displayName?: string;
|
||||
avatarUrl?: string;
|
||||
hostSignupActive?: boolean;
|
||||
}
|
||||
|
||||
export class OwnProfileStore extends AsyncStoreWithClient<IState> {
|
||||
|
@ -41,6 +42,16 @@ export class OwnProfileStore extends AsyncStoreWithClient<IState> {
|
|||
return OwnProfileStore.internalInstance;
|
||||
}
|
||||
|
||||
public get isHostSignupActive(): boolean {
|
||||
return this.state.hostSignupActive;
|
||||
}
|
||||
|
||||
public async setHostSignupActive(status: boolean) {
|
||||
await this.updateState({
|
||||
hostSignupActive: status,
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the display name for the user, or null if not present.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue