mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-09-17 14:21:14 +00:00
migrate to adf-button
This commit is contained in:
@@ -46,15 +46,15 @@
|
||||
|
||||
<mat-card-actions align="end" *ngIf="canUpdateLibrary">
|
||||
<ng-container *ngIf="form.enabled">
|
||||
<button mat-button (click)="cancel()">
|
||||
<adf-button (click)="cancel()">
|
||||
{{ 'LIBRARY.DIALOG.CANCEL' | translate }}
|
||||
</button>
|
||||
<button mat-button color="primary" [disabled]="form.invalid || form.pristine" (click)="update()">
|
||||
</adf-button>
|
||||
<adf-button color="primary" [disabled]="form.invalid || form.pristine" (click)="update()">
|
||||
{{ 'LIBRARY.DIALOG.UPDATE' | translate }}
|
||||
</button>
|
||||
</adf-button>
|
||||
</ng-container>
|
||||
<button mat-button color="primary" (click)="toggleEdit()" *ngIf="form.disabled">
|
||||
<adf-button color="primary" (click)="toggleEdit()" *ngIf="form.disabled">
|
||||
{{ 'LIBRARY.DIALOG.EDIT' | translate }}
|
||||
</button>
|
||||
</adf-button>
|
||||
</mat-card-actions>
|
||||
</mat-card>
|
||||
|
@@ -46,7 +46,7 @@ import {
|
||||
isAdmin
|
||||
} from '@alfresco/aca-shared/store';
|
||||
import { debounceTime, filter, mergeMap, takeUntil } from 'rxjs/operators';
|
||||
import { AlfrescoApiService } from '@alfresco/adf-core';
|
||||
import { AlfrescoApiService, ButtonComponent } from '@alfresco/adf-core';
|
||||
import { Observable, from, Subject } from 'rxjs';
|
||||
import { ErrorStateMatcher, MatOptionModule } from '@angular/material/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
@@ -56,7 +56,6 @@ import { MatFormFieldModule } from '@angular/material/form-field';
|
||||
import { MatSelectModule } from '@angular/material/select';
|
||||
import { MatInputModule } from '@angular/material/input';
|
||||
import { A11yModule } from '@angular/cdk/a11y';
|
||||
import { MatButtonModule } from '@angular/material/button';
|
||||
import { Actions, ofType } from '@ngrx/effects';
|
||||
|
||||
export class InstantErrorStateMatcher implements ErrorStateMatcher {
|
||||
@@ -79,7 +78,7 @@ export class InstantErrorStateMatcher implements ErrorStateMatcher {
|
||||
MatOptionModule,
|
||||
MatInputModule,
|
||||
A11yModule,
|
||||
MatButtonModule
|
||||
ButtonComponent
|
||||
],
|
||||
selector: 'app-library-metadata-form',
|
||||
templateUrl: './library-metadata-form.component.html',
|
||||
|
Reference in New Issue
Block a user