@cloudron/pankow 4.1.2 → 4.1.3
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/components/DirectoryView.vue +22 -1
- package/package.json +1 -1
|
@@ -174,6 +174,22 @@ export default {
|
|
|
174
174
|
type: Boolean,
|
|
175
175
|
default: true
|
|
176
176
|
},
|
|
177
|
+
showPaste: {
|
|
178
|
+
type: Boolean,
|
|
179
|
+
default: true
|
|
180
|
+
},
|
|
181
|
+
showRename: {
|
|
182
|
+
type: Boolean,
|
|
183
|
+
default: true
|
|
184
|
+
},
|
|
185
|
+
showSelectAll: {
|
|
186
|
+
type: Boolean,
|
|
187
|
+
default: true
|
|
188
|
+
},
|
|
189
|
+
showDownload: {
|
|
190
|
+
type: Boolean,
|
|
191
|
+
default: true
|
|
192
|
+
},
|
|
177
193
|
showDelete: {
|
|
178
194
|
type: Boolean,
|
|
179
195
|
default: true
|
|
@@ -399,11 +415,13 @@ export default {
|
|
|
399
415
|
disabled: () => { return this.selectedCount > 1; },
|
|
400
416
|
action: () => { this.onItemActivated(this.getSelected()[0]); }
|
|
401
417
|
}, {
|
|
402
|
-
separator:true
|
|
418
|
+
separator:true,
|
|
419
|
+
visible: () => { return this.showDownload || this.showShare || this.showCopy || this.showCut || this.showPaste || this.showSelectAll; },
|
|
403
420
|
}, {
|
|
404
421
|
label: this.tr('filemanager.list.menu.download'),
|
|
405
422
|
icon:'fa-solid fa-download',
|
|
406
423
|
action: this.onItemDownload,
|
|
424
|
+
visible: () => { return this.showDownload; },
|
|
407
425
|
disabled: () => { return this.multiDownload ? this.selectedCount === 0 : this.selectedCount !== 1; }
|
|
408
426
|
}, {
|
|
409
427
|
label: this.tr('filemanager.list.menu.share'),
|
|
@@ -424,16 +442,19 @@ export default {
|
|
|
424
442
|
}, {
|
|
425
443
|
label: this.tr('filemanager.list.menu.paste'),
|
|
426
444
|
icon:'fa-regular fa-paste',
|
|
445
|
+
visible: () => { return this.showPaste; },
|
|
427
446
|
disabled: () => { return !(this.focusItem && this.focusItem.isDirectory) || this.selectedCount > 1 || !this.clipboard.files || !this.clipboard.files.length; },
|
|
428
447
|
action: () => { this.pasteHandler(this.clipboard.action, this.clipboard.files, this.focusItem); }
|
|
429
448
|
}, {
|
|
430
449
|
label: this.tr('filemanager.list.menu.selectAll'),
|
|
431
450
|
icon:'fa-solid fa-check-double',
|
|
451
|
+
visible: () => { return this.showSelectAll; },
|
|
432
452
|
action: this.onSelectAll
|
|
433
453
|
}, {
|
|
434
454
|
label: this.tr('filemanager.list.menu.rename'),
|
|
435
455
|
icon:'fa-regular fa-pen-to-square',
|
|
436
456
|
action: this.onItemRenameBegin,
|
|
457
|
+
visible: () => { return this.showRename; },
|
|
437
458
|
disabled: () => { return !this.editable || this.selectedCount > 1; }
|
|
438
459
|
}, {
|
|
439
460
|
label: this.tr('filemanager.list.menu.chown'),
|