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