Muted text

This commit is contained in:
Adina Țeudan 2022-04-20 00:44:46 +03:00
parent 2968539744
commit d815449b40
2 changed files with 10 additions and 5 deletions

View File

@ -1,14 +1,19 @@
@use 'common-mixins' as mixins;
.text-muted {
opacity: 0.7;
}
.all-caps-label {
text-transform: uppercase;
opacity: 0.7;
font-size: 11px;
font-weight: 600;
letter-spacing: 0;
line-height: 14px;
transition: opacity 0.2s;
@extend .text-muted;
&.cancel {
cursor: pointer;
@ -71,7 +76,7 @@ pre {
.info {
font-size: 13px;
line-height: 18px;
opacity: 0.7;
@extend .text-muted;
}
.page-title {
@ -83,10 +88,10 @@ pre {
}
.small-label {
opacity: 0.7;
font-size: 11px;
line-height: 14px;
font-weight: initial;
@extend .text-muted;
}
.link-action {

View File

@ -25,7 +25,7 @@ export interface SaveOptions {
export abstract class BaseDialogComponent extends AutoUnsubscribe implements OnInit {
form!: FormGroup;
initialFormValue;
private readonly _dialogService: ConfirmationDialogService = this._injector.get(ConfirmationDialogService);
private readonly _confirmationDialogService: ConfirmationDialogService = this._injector.get(ConfirmationDialogService);
private readonly _dialog: MatDialog = this._injector.get(MatDialog);
constructor(
@ -89,7 +89,7 @@ export abstract class BaseDialogComponent extends AutoUnsubscribe implements OnI
}
protected _openConfirmDialog() {
const dialogRef = this._dialogService.openDialog({ disableConfirm: !this.valid });
const dialogRef = this._confirmationDialogService.openDialog({ disableConfirm: !this.valid });
return firstValueFrom(dialogRef.afterClosed());
}
}