mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-11-20 03:25:52 +01:00
Use getter
This commit is contained in:
parent
b2d6a78365
commit
38a82b2cb2
@ -26,12 +26,12 @@ type Options = BaseOptions & {
|
||||
};
|
||||
|
||||
export class VerifyEmojisViewModel extends ErrorReportViewModel<SegmentType, Options> {
|
||||
public isWaiting: boolean = false;
|
||||
private _isWaiting: boolean = false;
|
||||
|
||||
async setEmojiMatch(match: boolean) {
|
||||
await this.logAndCatch("VerifyEmojisViewModel.setEmojiMatch", async () => {
|
||||
await this.options.stage.setEmojiMatch(match);
|
||||
this.isWaiting = true;
|
||||
this._isWaiting = true;
|
||||
this.emitChange("isWaiting");
|
||||
});
|
||||
}
|
||||
@ -43,4 +43,8 @@ export class VerifyEmojisViewModel extends ErrorReportViewModel<SegmentType, Opt
|
||||
get kind(): string {
|
||||
return "verify-emojis";
|
||||
}
|
||||
|
||||
get isWaiting(): boolean {
|
||||
return this._isWaiting;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user