mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-09-17 14:21:14 +00:00
[ACA-1607] context menu - join/cancel join actions (#820)
* [ACA-1607] context menu fix for search-results * [ACA-19] fix orderBy 'Name' * [ACA-1607] style changes * [ACA-1607] reload on join action
This commit is contained in:
committed by
Denys Vuika
parent
25121e5cf3
commit
62e33efbd0
@@ -39,8 +39,7 @@ import {
|
||||
selector: 'app-toggle-join-library',
|
||||
template: `
|
||||
<button
|
||||
mat-icon-button
|
||||
[color]="'primary'"
|
||||
mat-menu-item
|
||||
#membership="libraryMembership"
|
||||
(toggle)="onToggleEvent($event)"
|
||||
(error)="onErrorEvent($event)"
|
||||
@@ -57,8 +56,29 @@ import {
|
||||
svgIcon="join_library"
|
||||
style="pointer-events: none;"
|
||||
></mat-icon>
|
||||
<span class="sideLabel">{{
|
||||
(membership.isJoinRequested | async)
|
||||
? ('APP.ACTIONS.CANCEL_JOIN' | translate)
|
||||
: ('APP.ACTIONS.JOIN' | translate)
|
||||
}}</span>
|
||||
</button>
|
||||
`,
|
||||
styles: [
|
||||
`
|
||||
aca-toolbar-action .app-toggle-join-library .sideLabel {
|
||||
display: none;
|
||||
}
|
||||
|
||||
aca-toolbar-action .app-toggle-join-library .mat-menu-item mat-icon {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.adf-toolbar .app-toggle-join-library .mat-menu-item:hover {
|
||||
background: none;
|
||||
}
|
||||
`
|
||||
],
|
||||
encapsulation: ViewEncapsulation.None,
|
||||
host: { class: 'app-toggle-join-library' }
|
||||
})
|
||||
|
Reference in New Issue
Block a user