mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +00:00
enable share action on favorites (#731)
This commit is contained in:
committed by
Denys Vuika
parent
30b445dde9
commit
4b8dbe81d4
@@ -26,7 +26,6 @@
|
||||
import { RuleContext, RuleParameter } from '@alfresco/adf-extensions';
|
||||
import {
|
||||
isNotTrashcan,
|
||||
isNotFavorites,
|
||||
isNotLibraries,
|
||||
isFavorites,
|
||||
isLibraries,
|
||||
@@ -70,11 +69,7 @@ export function canShareFile(
|
||||
context: RuleContext,
|
||||
...args: RuleParameter[]
|
||||
): boolean {
|
||||
if (
|
||||
isNotTrashcan(context, ...args) &&
|
||||
isNotFavorites(context, ...args) &&
|
||||
context.selection.file
|
||||
) {
|
||||
if (isNotTrashcan(context, ...args) && context.selection.file) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user