deriving-modal.component.ts raw
1 import { Component } from '@angular/core';
2
3 @Component({
4 selector: 'app-deriving-modal',
5 templateUrl: './deriving-modal.component.html',
6 styleUrl: './deriving-modal.component.scss',
7 })
8 export class DerivingModalComponent {
9 visible = false;
10 message = 'Deriving encryption key';
11
12 /**
13 * Show the deriving modal
14 * @param message Optional custom message
15 */
16 show(message?: string): void {
17 if (message) {
18 this.message = message;
19 }
20 this.visible = true;
21 }
22
23 /**
24 * Hide the modal
25 */
26 hide(): void {
27 this.visible = false;
28 }
29 }
30