easy-file-system 2.1.74 → 2.1.77

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/explorer.js CHANGED
@@ -103,6 +103,15 @@ class Explorer extends Element {
103
103
  return EntriesList;
104
104
  }
105
105
 
106
+ isExplorerIgnored(explorer) {
107
+ const reference = explorer.getReference(),
108
+ ignoredReferences = this.getIgnoredReferences(),
109
+ ignoredReferencesIncludesReference = ignoredReferences.includes(reference),
110
+ explorerIgnored = ignoredReferencesIncludesReference; ///
111
+
112
+ return explorerIgnored;
113
+ }
114
+
106
115
  isDirectoryEmpty(directoryPath) {
107
116
  const directoryNameDragEntryItem = this.retrieveDirectoryNameDragEntryItem(directoryPath),
108
117
  directoryNameDragEntryItemEmpty = directoryNameDragEntryItem.isEmpty(),
@@ -111,13 +120,12 @@ class Explorer extends Element {
111
120
  return directoryEmpty;
112
121
  }
113
122
 
114
- isExplorerIgnored(explorer) {
115
- const reference = explorer.getReference(),
116
- ignoredReferences = this.getIgnoredReferences(),
117
- ignoredReferencesIncludesReference = ignoredReferences.includes(reference),
118
- explorerIgnored = ignoredReferencesIncludesReference; ///
123
+ isDirectoryReadOnly(directoryPath) {
124
+ const directoryNameDragEntryItem = this.retrieveDirectoryNameDragEntryItem(directoryPath),
125
+ directoryNameDragEntryItemReadOnly = directoryNameDragEntryItem.isReadOnly(),
126
+ directoryReadOnly = directoryNameDragEntryItemReadOnly; ///
119
127
 
120
- return explorerIgnored;
128
+ return directoryReadOnly;
121
129
  }
122
130
 
123
131
  getIgnoredReferences() {
@@ -276,11 +284,7 @@ class Explorer extends Element {
276
284
  const selectedDragEntryItem = this.retrieveSelectedDragEntryItem();
277
285
 
278
286
  if (selectedDragEntryItem !== null) {
279
- const selectedDragEntryItemReadOnly = selectedDragEntryItem.isReadOnly();
280
-
281
- if (!selectedDragEntryItemReadOnly) {
282
- selectedDragEntryItem.edit();
283
- }
287
+ selectedDragEntryItem.edit();
284
288
  }
285
289
  }
286
290