-
Notifications
You must be signed in to change notification settings - Fork 149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ACS-5540] Moved Aspects icons top of properties panel #3414
Changes from all commits
3064c0f
6a7f8b5
3e435be
bcd2d1c
7aefddf
6a00c3e
b018336
c97e4e8
3d5ec7a
9c2ad83
afc65c4
5121ad0
341d7c4
28c4151
9ed9fcc
3d75506
1815570
ed561bc
c38a046
f400575
1116dfd
fab07b9
627c953
0559405
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,27 +39,36 @@ import { Actions, ofType } from '@ngrx/effects'; | |
imports: [CommonModule, ContentMetadataModule], | ||
selector: 'app-metadata-tab', | ||
template: ` | ||
<adf-content-metadata-card | ||
<adf-content-metadata | ||
[readOnly]="!canUpdateNode" | ||
[preset]="'custom'" | ||
[node]="node" | ||
[displayAspect]="displayAspect$ | async" | ||
[displayTags]="true" | ||
[displayCategories]="true" | ||
[(editable)]="editable" | ||
[(editableTags)]="editableTags" | ||
[(editableCategories)]="editableCategories" | ||
[(group)]="group" | ||
> | ||
</adf-content-metadata-card> | ||
</adf-content-metadata> | ||
`, | ||
encapsulation: ViewEncapsulation.None, | ||
host: { class: 'app-metadata-tab' } | ||
}) | ||
export class MetadataTabComponent implements OnInit, OnDestroy { | ||
protected onDestroy$ = new Subject<boolean>(); | ||
|
||
@Input() | ||
node: Node; | ||
|
||
displayAspect$: Observable<string>; | ||
canUpdateNode = false; | ||
editable = false; | ||
editableTags = false; | ||
editableCategories = false; | ||
group: any = { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can you avoid using any? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I will update this once ADF upstream PR merges. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ok please correct it after ADF upstream PR is merged and before you merge that ACA PR. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sure |
||
editable: false | ||
}; | ||
|
||
constructor( | ||
private permission: NodePermissionService, | ||
|
@@ -91,6 +100,9 @@ export class MetadataTabComponent implements OnInit, OnDestroy { | |
this.checkIfNodeIsUpdatable(updatedNode?.payload.entry); | ||
if (!this.canUpdateNode) { | ||
this.editable = false; | ||
this.editableTags = false; | ||
this.editableCategories = false; | ||
this.group.editable = false; | ||
} | ||
}); | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some focus styling are not working as expected
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same for close and save buttons for each section
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have fixed the focus issue.