modaq
Version:
Quiz Bowl Reader using TypeScript, React, and MobX
44 lines • 1.35 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.RenameTeamDialogState = void 0;
const mobx_1 = require("mobx");
class RenameTeamDialogState {
constructor(initialTeamName) {
Object.defineProperty(this, "errorMessage", {
enumerable: true,
configurable: true,
writable: true,
value: void 0
});
Object.defineProperty(this, "newName", {
enumerable: true,
configurable: true,
writable: true,
value: void 0
});
Object.defineProperty(this, "teamName", {
enumerable: true,
configurable: true,
writable: true,
value: void 0
});
mobx_1.makeAutoObservable(this);
this.errorMessage = undefined;
this.newName = initialTeamName;
this.teamName = initialTeamName;
}
clearErrorMessage() {
this.errorMessage = undefined;
}
setErrorMessage(errorMessage) {
this.errorMessage = errorMessage;
}
setName(newName) {
this.newName = newName;
}
setTeam(teamName) {
this.teamName = teamName;
}
}
exports.RenameTeamDialogState = RenameTeamDialogState;
//# sourceMappingURL=RenameTeamDialogState.js.map