|
|
@ -55,6 +55,7 @@ |
|
|
@if (item.type === ItemType.CALCULATED_FIELD || item.type === ItemType.RULE_CHAIN || item.type === ItemType.DEVICE) { |
|
|
@if (item.type === ItemType.CALCULATED_FIELD || item.type === ItemType.RULE_CHAIN || item.type === ItemType.DEVICE) { |
|
|
<!-- CF/RC/Device: description + author (no image) --> |
|
|
<!-- CF/RC/Device: description + author (no image) --> |
|
|
<div class="dlg-info"> |
|
|
<div class="dlg-info"> |
|
|
|
|
|
<div class="dlg-info-text"> |
|
|
@if (isInstalled()) { |
|
|
@if (isInstalled()) { |
|
|
<div class="dlg-info-status-row"> |
|
|
<div class="dlg-info-status-row"> |
|
|
<span class="dlg-installed-badge"> |
|
|
<span class="dlg-installed-badge"> |
|
|
@ -76,6 +77,7 @@ |
|
|
<tb-icon>person</tb-icon> |
|
|
<tb-icon>person</tb-icon> |
|
|
<span>{{ item.creatorDisplayName }}</span> |
|
|
<span>{{ item.creatorDisplayName }}</span> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
</div> |
|
|
<div class="dlg-info-actions"> |
|
|
<div class="dlg-info-actions"> |
|
|
@if (!isInstalled()) { |
|
|
@if (!isInstalled()) { |
|
|
<button mat-flat-button color="primary" (click)="install()"> |
|
|
<button mat-flat-button color="primary" (click)="install()"> |
|
|
@ -87,7 +89,6 @@ |
|
|
</button> |
|
|
</button> |
|
|
} |
|
|
} |
|
|
@if (isInstalled()) { |
|
|
@if (isInstalled()) { |
|
|
<span class="dlg-info-actions-spacer"></span> |
|
|
|
|
|
<button mat-stroked-button color="warn" (click)="deleteItem()"> |
|
|
<button mat-stroked-button color="warn" (click)="deleteItem()"> |
|
|
<mat-icon>delete</mat-icon> |
|
|
<mat-icon>delete</mat-icon> |
|
|
{{ 'iot-hub.remove' | translate }} |
|
|
{{ 'iot-hub.remove' | translate }} |
|
|
@ -144,6 +145,7 @@ |
|
|
} |
|
|
} |
|
|
</div> |
|
|
</div> |
|
|
<div class="dlg-info"> |
|
|
<div class="dlg-info"> |
|
|
|
|
|
<div class="dlg-info-text"> |
|
|
<!-- Installed status + links row --> |
|
|
<!-- Installed status + links row --> |
|
|
@if (isInstalled()) { |
|
|
@if (isInstalled()) { |
|
|
<div class="dlg-info-status-row"> |
|
|
<div class="dlg-info-status-row"> |
|
|
@ -151,7 +153,9 @@ |
|
|
<mat-icon>check</mat-icon> |
|
|
<mat-icon>check</mat-icon> |
|
|
{{ 'iot-hub.installed' | translate }} v{{ installedItem.version }} |
|
|
{{ 'iot-hub.installed' | translate }} v{{ installedItem.version }} |
|
|
</span> |
|
|
</span> |
|
|
@if (isSameVersion() && item.type === ItemType.SOLUTION_TEMPLATE) { |
|
|
@if (item.type === ItemType.SOLUTION_TEMPLATE) { |
|
|
|
|
|
<div class="dlg-info-links-row"> |
|
|
|
|
|
@if (isSameVersion()) { |
|
|
<a class="dlg-info-link" (click)="openSolutionInstructions()"> |
|
|
<a class="dlg-info-link" (click)="openSolutionInstructions()"> |
|
|
<mat-icon>info_outline</mat-icon> |
|
|
<mat-icon>info_outline</mat-icon> |
|
|
{{ 'iot-hub.solution-instructions' | translate }} |
|
|
{{ 'iot-hub.solution-instructions' | translate }} |
|
|
@ -159,12 +163,15 @@ |
|
|
} |
|
|
} |
|
|
<a class="dlg-info-link" (click)="openEntityDetails()"> |
|
|
<a class="dlg-info-link" (click)="openEntityDetails()"> |
|
|
<mat-icon>open_in_new</mat-icon> |
|
|
<mat-icon>open_in_new</mat-icon> |
|
|
@if (item.type === ItemType.SOLUTION_TEMPLATE) { |
|
|
|
|
|
{{ 'iot-hub.goto-main-dashboard' | translate }} |
|
|
{{ 'iot-hub.goto-main-dashboard' | translate }} |
|
|
|
|
|
</a> |
|
|
|
|
|
</div> |
|
|
} @else { |
|
|
} @else { |
|
|
|
|
|
<a class="dlg-info-link" (click)="openEntityDetails()"> |
|
|
|
|
|
<mat-icon>open_in_new</mat-icon> |
|
|
{{ 'iot-hub.open-item-type-details' | translate:{ type: getTypeLabel() } }} |
|
|
{{ 'iot-hub.open-item-type-details' | translate:{ type: getTypeLabel() } }} |
|
|
} |
|
|
|
|
|
</a> |
|
|
</a> |
|
|
|
|
|
} |
|
|
</div> |
|
|
</div> |
|
|
} |
|
|
} |
|
|
@if (item.description) { |
|
|
@if (item.description) { |
|
|
@ -176,6 +183,7 @@ |
|
|
<tb-icon>person</tb-icon> |
|
|
<tb-icon>person</tb-icon> |
|
|
<span>{{ item.creatorDisplayName }}</span> |
|
|
<span>{{ item.creatorDisplayName }}</span> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
</div> |
|
|
<!-- Action buttons --> |
|
|
<!-- Action buttons --> |
|
|
<div class="dlg-info-actions"> |
|
|
<div class="dlg-info-actions"> |
|
|
@if (!isInstalled()) { |
|
|
@if (!isInstalled()) { |
|
|
@ -188,7 +196,6 @@ |
|
|
</button> |
|
|
</button> |
|
|
} |
|
|
} |
|
|
@if (isInstalled()) { |
|
|
@if (isInstalled()) { |
|
|
<span class="dlg-info-actions-spacer"></span> |
|
|
|
|
|
<button mat-stroked-button color="warn" (click)="deleteItem()"> |
|
|
<button mat-stroked-button color="warn" (click)="deleteItem()"> |
|
|
<mat-icon>delete</mat-icon> |
|
|
<mat-icon>delete</mat-icon> |
|
|
{{ 'iot-hub.remove' | translate }} |
|
|
{{ 'iot-hub.remove' | translate }} |
|
|
|