Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update plugin-card.component.html
Browse files Browse the repository at this point in the history
mkz212 authored Nov 12, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 17c714c commit 0947325
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions ui/src/app/modules/plugins/plugin-card/plugin-card.component.html
Original file line number Diff line number Diff line change
@@ -56,17 +56,29 @@ <h4 class="card-title mb-0">

<div class="ml-auto">
<a href="javascript:void(0)" class="card-link text-decoration-none ml-3"
*ngIf="plugin.updateAvailable && !plugin.betaUpdateAvailable" (click)="$plugin.updatePlugin(plugin)"
*ngIf="!deviceIsMobile && plugin.updateAvailable && !plugin.betaUpdateAvailable" (click)="$plugin.updatePlugin(plugin)"
placement="bottom" ngbTooltip="{{'plugins.tooltip_update_plugin_to' | translate:plugin }}" container="body"
[openDelay]="150" [closeDelay]="3000" [autoClose]="true" [translate]="'plugins.button_update'" triggers="hover:focus:touchstart:touchend:click">
<i class="fas fa-fw fa-arrow-alt-circle-up primary-text"></i>
</a>
<a href="javascript:void(0)" class="card-link text-decoration-none ml-3"
*ngIf="!plugin.updateAvailable && plugin.betaUpdateAvailable" (click)="$plugin.updatePlugin(plugin, 'beta')"
*ngIf="!deviceIsMobile && !plugin.updateAvailable && plugin.betaUpdateAvailable" (click)="$plugin.updatePlugin(plugin, 'beta')"
placement="bottom" ngbTooltip="{{'plugins.tooltip_update_plugin_to' | translate:plugin }}" container="body"
[openDelay]="150" [closeDelay]="3000" [autoClose]="true" [translate]="'plugins.button_update'" triggers="hover:focus:touchstart:touchend:click">
<i class="fas fa-fw fa-arrow-alt-circle-up primary-text"></i>
</a>
<a href="javascript:void(0)" class="card-link text-decoration-none ml-3"
*ngIf="deviceIsMobile && plugin.updateAvailable && !plugin.betaUpdateAvailable" (click)="$plugin.updatePlugin(plugin)"
placement="bottom" ngbTooltip="" container="body"
[translate]="'plugins.button_update'">
<i class="fas fa-fw fa-arrow-alt-circle-up primary-text"></i>
</a>
<a href="javascript:void(0)" class="card-link text-decoration-none ml-3"
*ngIf="deviceIsMobile && !plugin.updateAvailable && plugin.betaUpdateAvailable" (click)="$plugin.updatePlugin(plugin, 'beta')"
placement="bottom" ngbTooltip="" container="body"
[translate]="'plugins.button_update'">
<i class="fas fa-fw fa-arrow-alt-circle-up primary-text"></i>
</a>
<ng-container *ngIf="hasChildBridges">
<a href="javascript:void(0);" class="card-link grey-text ml-3" rel="noopener noreferrer"
aria-label="Connect to HomeKit"

0 comments on commit 0947325

Please sign in to comment.