Browse Source

feat(iot-hub): add "Install one more" button in device detail dialog

When a device is already installed, show an "Install one more" button
next to the Remove button. Clicking it opens the install wizard to
provision another instance of the same device package.
pull/15508/head
Andrii Shvaika 3 months ago
parent
commit
e030807c34
  1. 8
      ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-item-detail-dialog.component.html
  2. 1
      ui-ngx/src/assets/locale/locale.constant-en_US.json

8
ui-ngx/src/app/modules/home/components/iot-hub/iot-hub-item-detail-dialog.component.html

@ -98,6 +98,10 @@
</button>
}
@if (isInstalled()) {
<button mat-stroked-button (click)="install()">
<mat-icon>add</mat-icon>
{{ 'iot-hub.install-one-more' | translate }}
</button>
<button mat-stroked-button color="warn" (click)="deleteItem()">
<mat-icon>delete</mat-icon>
{{ 'iot-hub.remove' | translate }}
@ -226,6 +230,10 @@
</button>
}
@if (isInstalled()) {
<button mat-stroked-button (click)="install()">
<mat-icon>add</mat-icon>
{{ 'iot-hub.install-one-more' | translate }}
</button>
<button mat-stroked-button color="warn" (click)="deleteItem()">
<tb-icon matButtonIcon class="tb-mat-24">mdi:trash-can-outline</tb-icon>
{{ 'iot-hub.remove' | translate }}

1
ui-ngx/src/assets/locale/locale.constant-en_US.json

@ -3797,6 +3797,7 @@
"install-type": "Type: {{type}}",
"install-creator": "Creator: {{creator}}",
"install": "Install",
"install-one-more": "Install one more",
"installing": "Installing...",
"installed": "Installed",
"install-success": "{{name}} installed successfully",

Loading…
Cancel
Save