@cloudron/pankow 3.6.0 → 3.6.1

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.
@@ -124,6 +124,26 @@ export default {
124
124
  type: Boolean,
125
125
  default: true
126
126
  },
127
+ showNewFile: {
128
+ type: Boolean,
129
+ default: true
130
+ },
131
+ showNewFolder: {
132
+ type: Boolean,
133
+ default: true
134
+ },
135
+ showCut: {
136
+ type: Boolean,
137
+ default: true
138
+ },
139
+ showCopy: {
140
+ type: Boolean,
141
+ default: true
142
+ },
143
+ showDelete: {
144
+ type: Boolean,
145
+ default: true
146
+ },
127
147
  showShare: {
128
148
  // if String its the name of the property for existing share indicator
129
149
  type: [ Boolean, String ],
@@ -299,25 +319,31 @@ export default {
299
319
  icon:'fa-solid fa-check-double',
300
320
  action: this.onSelectAll
301
321
  }, {
302
- separator:true
322
+ separator:true,
323
+ visible: () => { return this.showNewFile || this.showNewFolder; },
303
324
  }, {
304
325
  label: this.tr('filemanager.toolbar.newFile'),
305
326
  icon:'fa-solid fa-file-circle-plus',
306
- action: this.newFileHandler
327
+ action: this.newFileHandler,
328
+ visible: () => { return this.showNewFile; },
307
329
  }, {
308
330
  label: this.tr('filemanager.toolbar.newFolder'),
309
331
  icon:'fa-solid fa-folder-plus',
310
- action: this.newFolderHandler
332
+ action: this.newFolderHandler,
333
+ visible: () => { return this.showNewFolder; },
311
334
  }, {
312
- separator:true
335
+ separator:true,
336
+ visible: () => { return this.showUploadFile || this.showUploadFolder; },
313
337
  }, {
314
338
  label: this.tr('filemanager.toolbar.uploadFile'),
315
339
  icon:'fa-solid fa-file-arrow-up',
316
- action: this.uploadFileHandler
340
+ action: this.uploadFileHandler,
341
+ visible: () => { return this.showUploadFile; },
317
342
  }, {
318
343
  label: this.tr('filemanager.toolbar.uploadFolder'),
319
344
  icon:'fa-regular fa-folder-open',
320
- action: this.uploadFolderHandler
345
+ action: this.uploadFolderHandler,
346
+ visible: () => { return this.showUploadFolder; },
321
347
  }],
322
348
  contextMenuModel: [{
323
349
  label: this.tr('filemanager.list.menu.open'),
@@ -336,15 +362,17 @@ export default {
336
362
  icon:'fa-solid fa-share-nodes',
337
363
  action: this.onItemShare,
338
364
  disabled: () => { return this.selectedCount > 1; },
339
- visible: this.showShare
365
+ visible: () => { return this.showShare; },
340
366
  }, {
341
367
  label: this.tr('filemanager.list.menu.copy'),
342
368
  icon:'fa-regular fa-copy',
343
- action: this.onItemsCopy
369
+ action: this.onItemsCopy,
370
+ visible: () => { return this.showCopy; },
344
371
  }, {
345
372
  label: this.tr('filemanager.list.menu.cut'),
346
373
  icon:'fa-solid fa-scissors',
347
- action: this.onItemsCut
374
+ action: this.onItemsCut,
375
+ visible: () => { return this.showCut; },
348
376
  }, {
349
377
  label: this.tr('filemanager.list.menu.paste'),
350
378
  icon:'fa-regular fa-paste',
@@ -363,7 +391,7 @@ export default {
363
391
  label: this.tr('filemanager.list.menu.chown'),
364
392
  icon:'fa-solid fa-user-pen',
365
393
  action: this.onItemsChangeOwner,
366
- visible: this.showOwner
394
+ visible: () => { return this.showOwner; },
367
395
  }, {
368
396
  label: this.tr('filemanager.list.menu.extract'),
369
397
  action: this.onItemExtract,
@@ -381,11 +409,13 @@ export default {
381
409
  file.name.match(/\.tar\.bz2$/)));
382
410
  }
383
411
  }, {
384
- separator:true
412
+ separator:true,
413
+ visible: () => { return this.showDelete; },
385
414
  }, {
386
415
  label: this.tr('filemanager.list.menu.delete'),
387
416
  icon:'fa-regular fa-trash-can',
388
- action: () => { this.deleteHandler(this.getSelected()); }
417
+ action: () => { this.deleteHandler(this.getSelected()); },
418
+ visible: () => { return this.showDelete; },
389
419
  }],
390
420
  };
391
421
  },
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudron/pankow",
3
3
  "private": false,
4
- "version": "3.6.0",
4
+ "version": "3.6.1",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "types": "types/index.d.ts",
@@ -31,7 +31,7 @@
31
31
  "devDependencies": {
32
32
  "@vitejs/plugin-vue": "^6.0.3",
33
33
  "typescript": "^5.9.3",
34
- "vite": "^7.3.0",
34
+ "vite": "^7.3.1",
35
35
  "vue": "^3.5.26"
36
36
  }
37
37
  }