Fixes issue with action being displayed incorrectly.

Also fixes the issue with the loading icon on copy & move.

Signed-off-by: Abijeet <abijeetpatro@gmail.com>
pull/9717/head
Abijeet 7 years ago committed by John Molakvoæ (skjnldsv)
parent 57b649d665
commit 470310b3bf
No known key found for this signature in database
GPG Key ID: 60C25B8C072916CF
  1. 4
      apps/files/css/files.scss
  2. 2
      apps/files/js/filelist.js

@ -480,7 +480,9 @@ a.action > img {
display: inline-block;
vertical-align: middle;
}
.selectedActions.hidden {
display: none;
}
.selectedActions a {
display: inline;
line-height: 50px;

@ -817,13 +817,13 @@
return false;
}
self.fileMultiSelectMenu.toggleLoading('copyMove', true);
var disableLoadingState = function(){
self.fileMultiSelectMenu.toggleLoading('copyMove', false);
};
var actions = this.isSelectedMovable() ? OC.dialogs.FILEPICKER_TYPE_COPY_MOVE : OC.dialogs.FILEPICKER_TYPE_COPY;
OC.dialogs.filepicker(t('files', 'Target folder'), function(targetPath, type) {
self.fileMultiSelectMenu.toggleLoading('copyMove', true);
if (type === OC.dialogs.FILEPICKER_TYPE_COPY) {
self.copy(files, targetPath, disableLoadingState);
}

Loading…
Cancel
Save