Notify user if platform/lib install was successful

Signed-off-by: Akos Kitta <kittaakos@typefox.io>
This commit is contained in:
Akos Kitta 2021-04-07 12:19:34 +02:00 committed by Akos Kitta
parent cb2ef78c0a
commit c20f832ddf
2 changed files with 7 additions and 1 deletions

View File

@ -33,4 +33,9 @@ export class BoardsListWidget extends ListWidget<BoardsPackage> {
]);
}
async install({ item, version }: { item: BoardsPackage; version: string; }): Promise<void> {
await super.install({ item, version });
this.messageService.info(`Successfully installed platform ${item.name}:${version}.`, { timeout: 3000 });
}
}

View File

@ -84,7 +84,8 @@ export class LibraryListWidget extends ListWidget<LibraryPackage> {
}
if (typeof installDependencies === 'boolean') {
return this.service.install({ item, version, installDependencies });
await this.service.install({ item, version, installDependencies });
this.messageService.info(`Successfully installed library ${item.name}:${version}.`, { timeout: 3000 });
}
}