easy-file-system 2.1.33 → 2.1.34

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
@@ -284,10 +284,11 @@ class Explorer extends Element {
284
284
 
285
285
  createDirectoryPath() {
286
286
  const path = this.createPath(),
287
+ readOnly = false,
287
288
  collapsed = false,
288
289
  callHandlers = false,
289
290
  directoryPath = path, ///
290
- directoryNameDragEntryItem = this.addDirectoryPath(directoryPath, collapsed);
291
+ directoryNameDragEntryItem = this.addDirectoryPath(directoryPath, readOnly, collapsed);
291
292
 
292
293
  this.deselectDragEntryItem(directoryNameDragEntryItem);
293
294
 
@@ -89,6 +89,7 @@ class DragEntryItem extends EntryItem {
89
89
 
90
90
  getPathMap(sourceEntryPath, targetEntryPath) {
91
91
  const name = this.getName(),
92
+ readOnly = this.isReadOnly(),
92
93
  collapsed = this.isCollapsed(),
93
94
  nameSpanName = this.getNameSpanName(),
94
95
  entryDirectory = this.getEntryDirectory();
@@ -98,6 +99,7 @@ class DragEntryItem extends EntryItem {
98
99
  targetEntryPath = adjustTargetEntryPath(targetEntryPath, nameSpanName); ///
99
100
 
100
101
  const pathMap = {
102
+ readOnly,
101
103
  collapsed,
102
104
  entryDirectory,
103
105
  sourceEntryPath,
@@ -125,7 +125,7 @@ class EntriesList extends Element {
125
125
  if (topmostDirectoryNameDragEntryItem === null) {
126
126
  const collapsed = true;
127
127
 
128
- topmostDirectoryNameDragEntryItem = this.createDirectoryNameDragEntryItem(topmostDirectoryName, collapsed);
128
+ topmostDirectoryNameDragEntryItem = this.createDirectoryNameDragEntryItem(topmostDirectoryName, readOnly, collapsed);
129
129
 
130
130
  this.addEntryItem(topmostDirectoryNameDragEntryItem);
131
131
  }
@@ -51,10 +51,10 @@ function addDirectoryNameDragEntryItem(pathMap, explorer) {
51
51
  return;
52
52
  }
53
53
 
54
- const { collapsed } = pathMap,
54
+ const { readOnly, collapsed } = pathMap,
55
55
  directoryPath = targetEntryPath; ///
56
56
 
57
- explorer.addDirectoryPath(directoryPath, collapsed);
57
+ explorer.addDirectoryPath(directoryPath, readOnly, collapsed);
58
58
  }
59
59
 
60
60
  function removeDirectoryNameDragEntryItem(pathMap, explorer) {