mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-09-17 14:21:14 +00:00
update prettier (#790)
* update prettier * enable auto-formatting for html
This commit is contained in:
@@ -33,10 +33,7 @@ import { ToggleDocumentDisplayMode } from '../../../store/actions';
|
||||
@Component({
|
||||
selector: 'app-document-display-mode',
|
||||
template: `
|
||||
<button
|
||||
mat-icon-button
|
||||
color="primary"
|
||||
(click)="onClick()">
|
||||
<button mat-icon-button color="primary" (click)="onClick()">
|
||||
<mat-icon *ngIf="(displayMode$ | async) === 'list'">view_comfy</mat-icon>
|
||||
<mat-icon *ngIf="(displayMode$ | async) === 'gallery'">list</mat-icon>
|
||||
</button>
|
||||
|
@@ -35,15 +35,16 @@ import { ContentManagementService } from '../../../services/content-management.s
|
||||
selector: 'app-toggle-favorite',
|
||||
template: `
|
||||
<button
|
||||
mat-menu-item
|
||||
#favorites="adfFavorite"
|
||||
(toggle)="onToggleEvent()"
|
||||
[adf-node-favorite]="(selection$ | async).nodes">
|
||||
<mat-icon *ngIf="favorites.hasFavorites()">star</mat-icon>
|
||||
<mat-icon *ngIf="!favorites.hasFavorites()">star_border</mat-icon>
|
||||
<span>{{ 'APP.ACTIONS.FAVORITE' | translate }}</span>
|
||||
mat-menu-item
|
||||
#favorites="adfFavorite"
|
||||
(toggle)="onToggleEvent()"
|
||||
[adf-node-favorite]="(selection$ | async).nodes"
|
||||
>
|
||||
<mat-icon *ngIf="favorites.hasFavorites()">star</mat-icon>
|
||||
<mat-icon *ngIf="!favorites.hasFavorites()">star_border</mat-icon>
|
||||
<span>{{ 'APP.ACTIONS.FAVORITE' | translate }}</span>
|
||||
</button>
|
||||
`,
|
||||
`,
|
||||
encapsulation: ViewEncapsulation.None,
|
||||
host: { class: 'app-toggle-favorite' }
|
||||
})
|
||||
|
@@ -33,14 +33,15 @@ import { ToggleInfoDrawerAction } from '../../../store/actions';
|
||||
@Component({
|
||||
selector: 'app-toggle-info-drawer',
|
||||
template: `
|
||||
<button
|
||||
mat-icon-button
|
||||
[color]="(infoDrawerOpened$ | async) ? 'accent' : 'primary'"
|
||||
[attr.title]="'APP.ACTIONS.DETAILS' | translate"
|
||||
(click)="onClick()">
|
||||
<mat-icon>info_outline</mat-icon>
|
||||
</button>
|
||||
`,
|
||||
<button
|
||||
mat-icon-button
|
||||
[color]="(infoDrawerOpened$ | async) ? 'accent' : 'primary'"
|
||||
[attr.title]="'APP.ACTIONS.DETAILS' | translate"
|
||||
(click)="onClick()"
|
||||
>
|
||||
<mat-icon>info_outline</mat-icon>
|
||||
</button>
|
||||
`,
|
||||
encapsulation: ViewEncapsulation.None,
|
||||
host: { class: 'app-toggle-info-drawer' }
|
||||
})
|
||||
|
Reference in New Issue
Block a user