Add starting of local daemon for repositories with no daemon running
Signed-off-by: trivernis <trivernis@protonmail.com>pull/4/head
parent
d0b832fc89
commit
1982790b26
@ -1,7 +1,12 @@
|
||||
<mat-card>
|
||||
<mat-card-title>{{repository?.name}}</mat-card-title>
|
||||
<mat-card-content>{{repository?.address}}</mat-card-content>
|
||||
<mat-card-title>{{repository.name}}</mat-card-title>
|
||||
<mat-card-content>
|
||||
<p class="repository-path" *ngIf="repository.path">{{repository.path!}}</p>
|
||||
<p class="repository-address" *ngIf="!repository.path">{{repository.address}}</p>
|
||||
<div *ngIf="daemonRunning" class="daemon-running-info">Running</div>
|
||||
</mat-card-content>
|
||||
<mat-action-list>
|
||||
<button mat-flat-button color="primary" (click)="selectRepository()">Open</button>
|
||||
<button *ngIf="!daemonRunning" mat-flat-button color="primary" (click)="startDaemonAndSelectRepository()">Open</button>
|
||||
<button *ngIf="daemonRunning" mat-flat-button color="primary" (click)="selectRepository()">Connect</button>
|
||||
</mat-action-list>
|
||||
</mat-card>
|
||||
|
@ -1 +1,10 @@
|
||||
@import "../../../../../styles";
|
||||
|
||||
.repository-path {
|
||||
color: lightgray;
|
||||
}
|
||||
|
||||
.repository-address {
|
||||
color: lightgray;
|
||||
font-family: "Fira Code Light", Monospaced, Consolas, monospace;
|
||||
}
|
||||
|
Loading…
Reference in New Issue