mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +00:00
[ACA-2314] display "locked by" in search results (#1732)
* display "locked by" in search results * Trigger build
This commit is contained in:
@@ -1,19 +1,14 @@
|
||||
<div
|
||||
class="aca-custom-name-column"
|
||||
[ngClass]="{
|
||||
'aca-name-column-container': isFile() && isFileWriteLocked()
|
||||
'aca-name-column-container': isFile && isFileWriteLocked
|
||||
}"
|
||||
>
|
||||
<span
|
||||
role="link"
|
||||
[attr.aria-label]="
|
||||
(isFile()
|
||||
? 'CUSTOM_NAME_COLUMN.ACCESSIBILITY.FILE_LINK_ARIA_LABEL'
|
||||
: 'CUSTOM_NAME_COLUMN.ACCESSIBILITY.FOLDER_LINK_ARIA_LABEL')
|
||||
| translate
|
||||
: {
|
||||
name: displayText$ | async
|
||||
}
|
||||
(isFile ? 'CUSTOM_NAME_COLUMN.ACCESSIBILITY.FILE_LINK_ARIA_LABEL' : 'CUSTOM_NAME_COLUMN.ACCESSIBILITY.FOLDER_LINK_ARIA_LABEL')
|
||||
| translate: { name: displayText$ | async }
|
||||
"
|
||||
class="adf-datatable-cell-value"
|
||||
title="{{ node | adfNodeNameTooltip }}"
|
||||
@@ -23,7 +18,7 @@
|
||||
{{ displayText$ | async }}
|
||||
</span>
|
||||
|
||||
<ng-container *ngIf="isFile() && isFileWriteLocked()">
|
||||
<aca-locked-by [context]="context"></aca-locked-by>
|
||||
<ng-container *ngIf="isFile && isFileWriteLocked">
|
||||
<aca-locked-by [node]="context.row.node"></aca-locked-by>
|
||||
</ng-container>
|
||||
</div>
|
||||
|
@@ -91,11 +91,11 @@ export class CustomNameColumnComponent extends NameColumnComponent implements On
|
||||
this.onDestroy$$.complete();
|
||||
}
|
||||
|
||||
isFile(): boolean {
|
||||
get isFile(): boolean {
|
||||
return this.node && this.node.entry && !this.node.entry.isFolder;
|
||||
}
|
||||
|
||||
isFileWriteLocked(): boolean {
|
||||
get isFileWriteLocked(): boolean {
|
||||
return isLocked(this.node);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user