This repository has been archived by the owner on Mar 25, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
wowshakhov
committed
Nov 23, 2018
1 parent
3012a10
commit b5a757a
Showing
5 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
src/app/vm/vm-sidebar/vm-logs-secret-key/vm-logs-secret-key.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<mat-card> | ||
<mat-card-header> | ||
<mat-card-title> | ||
<h2>VM logs key</h2> | ||
</mat-card-title> | ||
</mat-card-header> | ||
<mat-card-content> | ||
<cs-input-group class="full-width-input"> | ||
<mat-form-field class="full-width-input" cs-input-group-textbox> | ||
<input matInput [value]="'9378535y32hr9823h832f832fg23fg23'" readonly> | ||
</mat-form-field> | ||
<cs-clipboard-button | ||
cs-input-group-button | ||
[value]="'9378535y32hr9823h832f832fg23fg23'" | ||
tooltipPosition="below" | ||
></cs-clipboard-button> | ||
<button | ||
cs-input-group-button | ||
mat-icon-button | ||
class="mat-icon-button" | ||
(click)="onRefresh()" | ||
> | ||
<mat-icon class="mdi-replay"></mat-icon> | ||
</button> | ||
</cs-input-group> | ||
|
||
<a class="truncate" target="_blank" [href]="apiUrl"> | ||
http://link_to_docs | ||
</a> | ||
</mat-card-content> | ||
</mat-card> |
Empty file.
20 changes: 20 additions & 0 deletions
20
src/app/vm/vm-sidebar/vm-logs-secret-key/vm-logs-secret-key.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { Component } from '@angular/core'; | ||
import { filter, onErrorResumeNext } from 'rxjs/operators'; | ||
|
||
import { DialogService } from '../../../dialog/dialog-service/dialog.service'; | ||
|
||
@Component({ | ||
selector: 'cs-vm-logs-secret-key', | ||
templateUrl: 'vm-logs-secret-key.component.html', | ||
styleUrls: ['vm-logs-secret-key.component.scss'], | ||
}) | ||
export class VmLogsSecretKeyComponent { | ||
constructor(private dialogService: DialogService) {} | ||
|
||
public onRefresh(): void { | ||
this.dialogService.confirm({ message: 'Are you sure you want to regenerate this key?' }).pipe( | ||
onErrorResumeNext(), | ||
filter(Boolean), | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters