Skip to content

Commit

Permalink
Update plugin-card.component.html
Browse files Browse the repository at this point in the history
  • Loading branch information
mkz212 authored Nov 14, 2023
1 parent f23bc0e commit 8337352
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions ui/src/app/modules/plugins/plugin-card/plugin-card.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -82,33 +82,17 @@ <h4 class="card-title mb-0">
<i class="fas fa-fw fa-ellipsis-v"></i>
</a>
<div ngbDropdownMenu aria-labelledby="Plugin actions drop down menu">
<ng-container *ngIf="hasChildBridges && !plugin.disabled">
<button ngbDropdownItem *ngIf="!childBridgeRestartInProgress && !plugin.disabled" (click)="doChildBridgeAction('restart')">
<i class="fa-fw icon-button fas fa-fw fa-power-off"></i> {{ 'child_bridge.label_bridge_restart_child_bridges' | translate }}
</button>
<button ngbDropdownItem *ngIf="!allChildBridgesStopped" (click)="doChildBridgeAction('stop')">
<i class="fas fa-fw fa-stop"></i> {{ 'child_bridge.label_child_stop' | translate }}
</button>
<button ngbDropdownItem *ngIf="allChildBridgesStopped" (click)="doChildBridgeAction('start')">
<i class="fas fa-fw fa-play"></i> {{ 'child_bridge.label_child_start' | translate }}
</button>
<div class="dropdown-divider"></div>
</ng-container>
<button ngbDropdownItem *ngIf="plugin.publicPackage" (click)="$plugin.installPreviousVersion(plugin)">
<i class="fas fa-fw fa-fw fa-history"></i>
{{ 'plugins.manage.message_install_alternate_version' | translate }}
</button>
<button ngbDropdownItem (click)="viewPluginLog(plugin)" *ngIf="plugin.installedVersion">
<i class="fas fa-fw fa-fw fa-wave-square"></i> {{ 'plugins.manage.plugin_logs' | translate }}
</button>
<button ngbDropdownItem (click)="$plugin.bridgeSettings(plugin)"
*ngIf="plugin.installedVersion && plugin.name !== 'homebridge-config-ui-x'">
<i class="fas fa-fw fa-fw fa-project-diagram"></i> {{ 'child_bridge.label_bridge_settings' | translate }}
</button>
<button ngbDropdownItem (click)="$plugin.jsonEditor(plugin)"
*ngIf="!isMobile && plugin.installedVersion && plugin.name !== 'homebridge-config-ui-x'">
<i class="fas fa-fw fa-fw fa-code"></i> {{ 'plugins.manage.json_config' | translate }}
</button>
<button ngbDropdownItem *ngIf="plugin.publicPackage" (click)="$plugin.installPreviousVersion(plugin)">
<i class="fas fa-fw fa-fw fa-history"></i>
{{ 'plugins.manage.message_install_alternate_version' | translate }}
</button>
<button ngbDropdownItem (click)="disablePlugin(plugin)"
*ngIf="plugin.installedVersion && plugin.name !== 'homebridge-config-ui-x' && !plugin.disabled">
<i class="far fa-fw fa-circle-pause"></i> {{ 'plugins.manage.disable' | translate }}
Expand All @@ -121,8 +105,24 @@ <h4 class="card-title mb-0">
(click)="$plugin.uninstallPlugin(plugin)">
<i class="fas fa-fw fa-fw fa-trash"></i> {{ 'plugins.button_uninstall' | translate }}
</button>
<div class="dropdown-divider"></div>
<ng-container *ngIf="hasChildBridges && !plugin.disabled">
<button ngbDropdownItem *ngIf="!childBridgeRestartInProgress && !plugin.disabled" (click)="doChildBridgeAction('restart')">
<i class="fa-fw icon-button fas fa-fw fa-power-off"></i> {{ 'child_bridge.label_bridge_restart_child_bridges' | translate }}
</button>
<button ngbDropdownItem *ngIf="!allChildBridgesStopped" (click)="doChildBridgeAction('stop')">
<i class="fas fa-fw fa-stop"></i> {{ 'child_bridge.label_child_stop' | translate }}
</button>
<button ngbDropdownItem *ngIf="allChildBridgesStopped" (click)="doChildBridgeAction('start')">
<i class="fas fa-fw fa-play"></i> {{ 'child_bridge.label_child_start' | translate }}
</button>
</ng-container>
<button ngbDropdownItem (click)="$plugin.bridgeSettings(plugin)"
*ngIf="plugin.installedVersion && plugin.name !== 'homebridge-config-ui-x'">
<i class="fas fa-fw fa-fw fa-project-diagram"></i> {{ 'child_bridge.label_bridge_settings' | translate }}
</button>
<div class="dropdown-divider" *ngIf="plugin.links.homepage || plugin.links.npm"></div>
<a ngbDropdownItem target="_blank" rel="noopener noreferrer" class="text-decoration-none"
<a ngbDropdownItem target="_blank" rel="noopener noreferrer" class="text-decoration-none"
*ngIf="plugin.name === 'homebridge-config-ui-x'" href="/swagger">
<i class="fas fa-fw fa-passport"></i> {{ 'plugins.button_api_documentation' | translate }}
</a>
Expand Down

0 comments on commit 8337352

Please sign in to comment.