mirror of
https://github.com/Terncode/pixel.horse.git
synced 2026-09-24 21:55:52 +02:00
Revert codestyle changes (#40)
* Revert "7f7efbb94bab8574e42d942ad82d414e007b2970" Code style changes should probably be part of a PR
This commit is contained in:
@@ -7,26 +7,26 @@ import { removeItem } from '../../../common/utils';
|
||||
import { Model } from '../../services/model';
|
||||
|
||||
@Component({
|
||||
selector: 'invites-modal',
|
||||
templateUrl: 'invites-modal.pug',
|
||||
selector: 'invites-modal',
|
||||
templateUrl: 'invites-modal.pug',
|
||||
})
|
||||
export class InvitesModal implements OnInit {
|
||||
@Output() close = new EventEmitter();
|
||||
invites: (SupporterInvite & { pony: PalettePonyInfo; })[] = [];
|
||||
error?: string;
|
||||
constructor(private model: Model, private game: PonyTownGame) {
|
||||
}
|
||||
get inviteLimit() {
|
||||
return this.model.supporterInviteLimit;
|
||||
}
|
||||
ngOnInit() {
|
||||
this.game.send(server => server.getInvites())!
|
||||
.then(invites => invites.map(i => ({ ...i, pony: toPalette(decompressPonyString(i.info)) })))
|
||||
.then(invites => this.invites = invites);
|
||||
}
|
||||
remove(invite: SupporterInvite) {
|
||||
this.error = undefined;
|
||||
this.game.send(server => server.actionParam(Action.CancelSupporterInvite, invite.id));
|
||||
removeItem(this.invites, invite);
|
||||
}
|
||||
@Output() close = new EventEmitter();
|
||||
invites: (SupporterInvite & { pony: PalettePonyInfo; })[] = [];
|
||||
error?: string;
|
||||
constructor(private model: Model, private game: PonyTownGame) {
|
||||
}
|
||||
get inviteLimit() {
|
||||
return this.model.supporterInviteLimit;
|
||||
}
|
||||
ngOnInit() {
|
||||
this.game.send(server => server.getInvites())!
|
||||
.then(invites => invites.map(i => ({ ...i, pony: toPalette(decompressPonyString(i.info)) })))
|
||||
.then(invites => this.invites = invites);
|
||||
}
|
||||
remove(invite: SupporterInvite) {
|
||||
this.error = undefined;
|
||||
this.game.send(server => server.actionParam(Action.CancelSupporterInvite, invite.id));
|
||||
removeItem(this.invites, invite);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user