only prevent shared action for the Shared folder in the root dir
This commit is contained in:
parent
b2da2f769a
commit
e5f40ddaae
|
@ -112,7 +112,7 @@ var FileActions = {
|
||||||
addAction(name, action);
|
addAction(name, action);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
if(actions.Share && file !== 'Shared'){
|
if(actions.Share && !($('#dir').val() === '/' && file === 'Shared')){
|
||||||
addAction('Share', actions.Share);
|
addAction('Share', actions.Share);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue