[ACA-2645] Shared - don't render shared settings action for multiple selection (#1141)

* check if is single selection

* tests
This commit is contained in:
Cilibiu Bogdan
2019-06-27 11:18:00 +03:00
committed by Denys Vuika
parent 9176cf993c
commit 16b7eee621
2 changed files with 78 additions and 1 deletions

View File

@@ -114,7 +114,7 @@ export function canEditFolder(context: RuleContext): boolean {
* JSON ref: `app.selection.file.isShared`
*/
export function isShared(context: RuleContext): boolean {
if (navigation.isSharedFiles(context) && !context.selection.isEmpty) {
if (navigation.isSharedFiles(context) && context.selection.file) {
return true;
}