change download buttons labeling

This commit is contained in:
Bruno Windels
2020-12-07 16:01:29 +01:00
parent 42994c4474
commit ef073de306
3 changed files with 10 additions and 17 deletions
+2 -11
View File
@@ -53,7 +53,7 @@ export class ClientViewModel extends ViewModel {
if (nativePlatform) {
const nativeActions = (client.getInstallLinks(nativePlatform) || []).map(installLink => {
return {
label: installLink.description,
label: installLink.getDescription(nativePlatform),
url: installLink.createInstallURL(link),
kind: installLink.channelId,
primary: true,
@@ -66,22 +66,13 @@ export class ClientViewModel extends ViewModel {
const webDeepLink = client.getDeepLink(webPlatform, link);
if (webDeepLink) {
actions.push({
label: `Or open in web app`,
label: `Continue in your browser`,
url: webDeepLink,
kind: "open-in-web",
activated: () => this.preferences.setClient(client.id, webPlatform),
});
}
}
if (client.homepage) {
actions.push({
label: `Visit app homepage`,
url: client.homepage,
primary: true,
kind: "homepage",
activated: () => {},
});
}
return actions;
}