From 283c22d29f7da4144ab75a6d9dfa5293d086de85 Mon Sep 17 00:00:00 2001 From: Chris Veilleux Date: Thu, 29 Nov 2018 12:58:42 -0600 Subject: [PATCH] remove logic that removed items from the "to_install" and "to_remove" install skill settings. This will be done on the backend by the API that talks to the device. --- .../market/src/app/skills/install.service.ts | 36 ------------------- 1 file changed, 36 deletions(-) diff --git a/projects/market/src/app/skills/install.service.ts b/projects/market/src/app/skills/install.service.ts index 7d1e76c..9d960b1 100644 --- a/projects/market/src/app/skills/install.service.ts +++ b/projects/market/src/app/skills/install.service.ts @@ -80,7 +80,6 @@ export class InstallService { case ('installing'): { if (newSkillStatus === 'installed') { this.statusNotifications.next([skillName, newSkillStatus]); - this.removeFromInstallQueue(skillName).subscribe(); } else if (newSkillStatus === 'failed') { this.statusNotifications.next([skillName, 'install failed']); } else { @@ -91,7 +90,6 @@ export class InstallService { case ('uninstalling'): { if (!newSkillStatus) { this.statusNotifications.next([skillName, 'uninstalled']); - this.removeFromUninstallQueue(skillName).subscribe(); } else if (newSkillStatus === 'failed') { this.statusNotifications.next([skillName, 'uninstall failed']); } else { @@ -161,7 +159,6 @@ export class InstallService { return this.http.put( installerSettingsUrl, { - action: 'add', section: 'to_install', skill_name: skillName } @@ -177,39 +174,6 @@ export class InstallService { return this.http.put( installerSettingsUrl, { - action: 'add', - section: 'to_remove', - skill_name: skillName - } - ); - } - - /** - * Call the API to remove a skill to the Installer skill's 'to_install' setting. - * - * @param skillName: the skill being installed - */ - removeFromInstallQueue(skillName: string): Observable { - return this.http.put( - installerSettingsUrl, - { - action: 'remove', - section: 'to_install', - skill_name: skillName - } - ); - } - - /** - * Call the API to remove a skill to the Installer skill's 'to_remove' setting. - * - * @param skillName: the skill being removed - */ - removeFromUninstallQueue(skillName: string): Observable { - return this.http.put( - installerSettingsUrl, - { - action: 'remove', section: 'to_remove', skill_name: skillName }