Fix default action for deleted shares
Signed-off-by: GretaD <gretadoci@gmail.com>
This commit is contained in:
parent
e85d3ae3f8
commit
f8d4254138
3 changed files with 13 additions and 1 deletions
|
@ -98,6 +98,11 @@
|
|||
*/
|
||||
shown: false,
|
||||
|
||||
/**
|
||||
* @type boolean
|
||||
*/
|
||||
_setDefaultActionsEnabled: true,
|
||||
|
||||
/**
|
||||
* Number of files per page
|
||||
* Always show a minimum of 1
|
||||
|
@ -876,7 +881,7 @@
|
|||
if (!this._detailsView || $(event.target).is('.nametext, .name, .thumbnail') || $(event.target).closest('.nametext').length) {
|
||||
var filename = $tr.attr('data-file');
|
||||
var renaming = $tr.data('renaming');
|
||||
if (!renaming) {
|
||||
if (!renaming && !this.setDefaultActionsEnabled) {
|
||||
this.fileActions.currentFile = $tr.find('td');
|
||||
var mime = this.fileActions.getCurrentMimeType();
|
||||
var type = this.fileActions.getCurrentType();
|
||||
|
@ -919,6 +924,13 @@
|
|||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Event handler when default action is enabled
|
||||
*/
|
||||
setDefaultActionsEnabled: function(enabled) {
|
||||
this._setDefaultActionsEnabled = enabled
|
||||
},
|
||||
|
||||
/**
|
||||
* Event handler for when clicking on a file's checkbox
|
||||
*/
|
||||
|
|
BIN
apps/settings/js/vue-3.js
Normal file
BIN
apps/settings/js/vue-3.js
Normal file
Binary file not shown.
BIN
apps/settings/js/vue-3.js.map
Normal file
BIN
apps/settings/js/vue-3.js.map
Normal file
Binary file not shown.
Loading…
Reference in a new issue