@@ -0,0 +1,8 @@
|
||||
<div class="container p-lg-0 pb-0" style="max-width: 100%; margin-top: 7px" *ngIf="storageService.getValue('hideWarning') !== 'hidden'">
|
||||
<div class="alert alert-danger mb-0 text-center">
|
||||
<div class="message-container" i18n="warning-testnet">This is a test network. Coins have no value.</div>
|
||||
<button type="button" class="close" (click)="dismissWarning()">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,31 @@
|
||||
.alert-danger {
|
||||
color: #fff;
|
||||
background-color: #b71c1c;
|
||||
border-color: #b71c1c;
|
||||
padding: 0.5rem 1.25rem;
|
||||
margin: 0px 10px 0px 10px;
|
||||
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.message-container {
|
||||
display: flex;
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
.close {
|
||||
display: flex;
|
||||
color: #fff;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
button {
|
||||
display: flex;
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
span {
|
||||
position: relative;
|
||||
top: -2px;
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
||||
import { StorageService } from '../../../services/storage.service';
|
||||
|
||||
@Component({
|
||||
selector: 'app-testnet-alert',
|
||||
templateUrl: './testnet-alert.component.html',
|
||||
styleUrls: ['./testnet-alert.component.scss'],
|
||||
changeDetection: ChangeDetectionStrategy.OnPush,
|
||||
})
|
||||
export class TestnetAlertComponent {
|
||||
|
||||
constructor(
|
||||
public storageService: StorageService,
|
||||
) { }
|
||||
|
||||
dismissWarning(): void {
|
||||
this.storageService.setValue('hideWarning', 'hidden');
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user