mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
[MNT-24334] allow to delete or move on search result page (#3898)
This commit is contained in:
@@ -67,6 +67,7 @@ export const supportedExtensions = {
|
||||
vstx: 'ms-visio',
|
||||
vstm: 'ms-visio'
|
||||
};
|
||||
|
||||
/* cspell:enable */
|
||||
|
||||
export function getFileExtension(fileName: string): string | null {
|
||||
@@ -182,7 +183,7 @@ export function isShared(context: RuleContext): boolean {
|
||||
* JSON ref: `app.selection.canDelete`
|
||||
*/
|
||||
export function canDeleteSelection(context: RuleContext): boolean {
|
||||
if (navigation.isNotTrashcan(context) && navigation.isNotLibraries(context) && navigation.isNotSearchResults(context) && hasSelection(context)) {
|
||||
if (navigation.isNotTrashcan(context) && navigation.isNotLibraries(context) && hasSelection(context)) {
|
||||
if (hasLockedFiles(context)) {
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user