fix name clash with ViewModel.platforms

This commit is contained in:
Bruno Windels 2020-12-02 09:42:33 +01:00
parent 08afeaf248
commit 9b7c3c2389
2 changed files with 2 additions and 2 deletions

View file

@ -32,7 +32,7 @@ export class ClientView extends TemplateView {
t.div({className: "description"}, [ t.div({className: "description"}, [
t.h3(vm.name), t.h3(vm.name),
t.p(vm.description), t.p(vm.description),
t.p(formatPlatforms(vm.platforms)), t.p(formatPlatforms(vm.availableOnPlatformNames)),
]), ]),
t.div({className: `icon ${vm.clientId}`}) t.div({className: `icon ${vm.clientId}`})
]), ]),

View file

@ -85,7 +85,7 @@ export class ClientViewModel extends ViewModel {
return this._client.getLinkInstructions(this._proposedPlatform, this._link); return this._client.getLinkInstructions(this._proposedPlatform, this._link);
} }
get platforms() { get availableOnPlatformNames() {
const platforms = this._client.platforms; const platforms = this._client.platforms;
const textPlatforms = []; const textPlatforms = [];
const hasWebPlatform = platforms.some(p => isWebPlatform(p)); const hasWebPlatform = platforms.some(p => isWebPlatform(p));