mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 20:14:49 +00:00
ui: copy button for tor address spec
This commit is contained in:
committed by
Aiden McClelland
parent
6f09738b49
commit
dd8037fda1
@@ -19,12 +19,16 @@
|
|||||||
</ion-item>
|
</ion-item>
|
||||||
|
|
||||||
<ion-item-group>
|
<ion-item-group>
|
||||||
<!-- TODO: Tor address needs a copy button. -->
|
|
||||||
<ion-item *ngFor="let spec of (server.specs | async) | keyvalue : asIsOrder" [class.break-all]="spec.key === 'Tor Address'">
|
<ion-item *ngFor="let spec of (server.specs | async) | keyvalue : asIsOrder" [class.break-all]="spec.key === 'Tor Address'">
|
||||||
<ion-label class="ion-text-wrap">
|
<ion-label class="ion-text-wrap" style="display: flex; justify-content: space-between; align-items: center;">
|
||||||
<h2>{{ spec.key }}</h2>
|
<div>
|
||||||
<p *ngIf="spec.value | isValidEmver">{{ spec.value | displayEmver }}</p>
|
<h2>{{ spec.key }}</h2>
|
||||||
<p *ngIf="!(spec.value | isValidEmver)">{{ spec.value }}</p>
|
<p *ngIf="spec.value | isValidEmver">{{ spec.value | displayEmver }}</p>
|
||||||
|
<p *ngIf="!(spec.value | isValidEmver)">{{ spec.value }}</p>
|
||||||
|
</div>
|
||||||
|
<ion-button *ngIf="spec.key === 'Tor Address'" fill="clear" (click)="copyTor()">
|
||||||
|
<ion-icon slot="icon-only" name="copy-outline" color="primary"></ion-icon>
|
||||||
|
</ion-button>
|
||||||
</ion-label>
|
</ion-label>
|
||||||
</ion-item>
|
</ion-item>
|
||||||
</ion-item-group>
|
</ion-item-group>
|
||||||
|
|||||||
Reference in New Issue
Block a user