From 9b7c3c2389b6960ee80961031966896f6b77ea4d Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Wed, 2 Dec 2020 09:42:33 +0100 Subject: [PATCH] fix name clash with ViewModel.platforms --- src/client/ClientView.js | 2 +- src/client/ClientViewModel.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/ClientView.js b/src/client/ClientView.js index d0f55c2..80041b9 100644 --- a/src/client/ClientView.js +++ b/src/client/ClientView.js @@ -32,7 +32,7 @@ export class ClientView extends TemplateView { t.div({className: "description"}, [ t.h3(vm.name), t.p(vm.description), - t.p(formatPlatforms(vm.platforms)), + t.p(formatPlatforms(vm.availableOnPlatformNames)), ]), t.div({className: `icon ${vm.clientId}`}) ]), diff --git a/src/client/ClientViewModel.js b/src/client/ClientViewModel.js index 1e8a17a..66f6d96 100644 --- a/src/client/ClientViewModel.js +++ b/src/client/ClientViewModel.js @@ -85,7 +85,7 @@ export class ClientViewModel extends ViewModel { return this._client.getLinkInstructions(this._proposedPlatform, this._link); } - get platforms() { + get availableOnPlatformNames() { const platforms = this._client.platforms; const textPlatforms = []; const hasWebPlatform = platforms.some(p => isWebPlatform(p));