Browse Source

refactor(iot-hub): keep the update description's javadoc on its getter

pull/16554/head
dpinkevych 4 weeks ago
parent
commit
4a99d6c81a
Failed to extract signature
  1. 10
      ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-update-dialog.component.ts

10
ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-update-dialog.component.ts

@ -59,16 +59,16 @@ export class TbIotHubUpdateDialogComponent extends DialogComponent<TbIotHubUpdat
return key ? this.translate.instant(key) : '';
}
/**
* Updating a solution template is a delete + reinstall of every entity it created, and unlike the other item
* types it is not stopped by the modified-entity check, so the tenant's own edits to those dashboards, devices
* and rule chains are lost. Say that instead of the generic "replace the current version" wording.
*/
/** A device package is reinstalled: its entities and their data are removed, as on Remove. */
get reinstalls(): boolean {
return this.data?.itemType === ItemType.DEVICE;
}
/**
* Updating a solution template is a delete + reinstall of every entity it created, and unlike the other item
* types it is not stopped by the modified-entity check, so the tenant's own edits to those dashboards, devices
* and rule chains are lost. Say that instead of the generic "replace the current version" wording.
*/
get updateDescKey(): string {
switch (this.data?.itemType) {
case ItemType.SOLUTION_TEMPLATE:

Loading…
Cancel
Save