mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
[ACS-5645]modified changes
This commit is contained in:
+4
-4
@@ -33,7 +33,7 @@
|
||||
<mat-icon>clear</mat-icon>
|
||||
</button>
|
||||
<button mat-icon-button
|
||||
(click)="saveChanges(buttonType.GeneralInfo, $event, group)"
|
||||
(click)="saveChanges(buttonType.GeneralInfo, $event)"
|
||||
color="primary"
|
||||
data-automation-id="save-general-info-metadata"
|
||||
[disabled]="!hasMetadataChanged">
|
||||
@@ -85,7 +85,7 @@
|
||||
<mat-icon>clear</mat-icon>
|
||||
</button>
|
||||
<button mat-icon-button
|
||||
(click)="saveChanges(buttonType.Tags, $event, group)"
|
||||
(click)="saveChanges(buttonType.Tags, $event)"
|
||||
color="primary"
|
||||
data-automation-id="save-tags-metadata"
|
||||
[disabled]="!hasMetadataChanged">
|
||||
@@ -145,7 +145,7 @@
|
||||
<mat-icon>clear</mat-icon>
|
||||
</button>
|
||||
<button mat-icon-button
|
||||
(click)="saveChanges(buttonType.Categories, $event, group)"
|
||||
(click)="saveChanges(buttonType.Categories, $event)"
|
||||
color="primary"
|
||||
data-automation-id="save-categories-metadata"
|
||||
[disabled]="!hasMetadataChanged">
|
||||
@@ -213,7 +213,7 @@
|
||||
<mat-icon>clear</mat-icon>
|
||||
</button>
|
||||
<button mat-icon-button
|
||||
(click)="saveChanges(buttonType.Group, $event, group)"
|
||||
(click)="saveChanges(buttonType.Group, $event)"
|
||||
color="primary"
|
||||
data-automation-id="save-metadata"
|
||||
[disabled]="!hasMetadataChanged">
|
||||
|
||||
+1
-14
@@ -104,25 +104,12 @@
|
||||
}
|
||||
}
|
||||
|
||||
.app-metadata-tab .adf-metadata-properties .mat-expansion-panel {
|
||||
.adf-info-drawer-layout-content .adf-content-metadata-card .adf-metadata-properties .mat-expansion-panel {
|
||||
border: 1px solid var(--adf-metadata-property-panel-border-color);
|
||||
border-radius: 12px;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.acs-details-container {
|
||||
.mat-tab-body-content {
|
||||
.adf-metadata-properties {
|
||||
.mat-expansion-panel {
|
||||
width: 755px;
|
||||
border: 1px solid var(--adf-metadata-property-panel-border-color);
|
||||
margin: 24px;
|
||||
border-radius: 12px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.adf-content-metadata-card {
|
||||
.mat-card:not([class*='mat-elevation-z']) {
|
||||
box-shadow: none;
|
||||
|
||||
+5
-5
@@ -131,7 +131,7 @@ export class ContentMetadataComponent implements OnChanges, OnInit, OnDestroy {
|
||||
@Input()
|
||||
readOnly = false;
|
||||
|
||||
/** Emitted when content's editable state is changed. **/
|
||||
/** Emitted when content's editable state is changed. **/
|
||||
@Output()
|
||||
editableChange = new EventEmitter<boolean>();
|
||||
|
||||
@@ -162,7 +162,7 @@ export class ContentMetadataComponent implements OnChanges, OnInit, OnDestroy {
|
||||
categoriesPanelState: boolean;
|
||||
editableCategories = false;
|
||||
hasAllowableOperations = false;
|
||||
editableGroup: any;
|
||||
editableGroup: CardViewGroup;
|
||||
buttonType = ButtonType;
|
||||
group: CardViewGroup;
|
||||
|
||||
@@ -271,9 +271,9 @@ export class ContentMetadataComponent implements OnChanges, OnInit, OnDestroy {
|
||||
* Called after clicking save button. It confirms all changes done for metadata and hides both category and tag name controls.
|
||||
* Before clicking on that button they are not saved.
|
||||
*/
|
||||
saveChanges(buttonType: ButtonType, event: MouseEvent, group?: CardViewGroup) {
|
||||
saveChanges(buttonType: ButtonType, event: MouseEvent) {
|
||||
event.stopPropagation();
|
||||
this.toggleEditMode(buttonType, group);
|
||||
this.toggleEditMode(buttonType);
|
||||
this._saving = true;
|
||||
this.tagNameControlVisible = false;
|
||||
this.categoryControlVisible = false;
|
||||
@@ -411,7 +411,7 @@ export class ContentMetadataComponent implements OnChanges, OnInit, OnDestroy {
|
||||
}
|
||||
|
||||
handleCategoriesPanelState(categoriesPanelState: boolean) {
|
||||
this.categoriesPanelState= categoriesPanelState;
|
||||
this.categoriesPanelState = categoriesPanelState;
|
||||
this.cdr.detectChanges();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user