X Tutup
Skip to content

Commit b51abaa

Browse files
committed
Fix JS tests, rename stuff
1 parent 771faf1 commit b51abaa

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed
File renamed without changes.

apps/files/js/filelist.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -675,8 +675,8 @@
675675

676676
// don't show app drawer for directories as we want to open them per default
677677
if (Object.keys(actionsWithoutAll).length > 1 && type !== 'dir') {
678-
var appDrawer = new OCA.Files.FileActionsApplicationSelectMenu();
679-
appDrawer.show(context, $tr.find('td.filename'));
678+
var appSelectMenu = new OCA.Files.FileActionsApplicationSelectMenu();
679+
appSelectMenu.show(context, $tr.find('td.filename'));
680680
event.preventDefault();
681681
return;
682682
}

apps/files/lib/Controller/ViewController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ public function index($dir = '', $view = '', $fileid = null, $details = null) {
186186

187187
\OCP\Util::addScript('files', 'fileactions');
188188
\OCP\Util::addScript('files', 'fileactionsmenu');
189-
\OCP\Util::addScript('files', 'fileactionsappdrawer');
189+
\OCP\Util::addScript('files', 'fileactionsapplicationselectmenu');
190190
\OCP\Util::addScript('files', 'files');
191191
\OCP\Util::addScript('files', 'keyboardshortcuts');
192192
\OCP\Util::addScript('files', 'navigation');

apps/files/tests/js/filelistSpec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2378,9 +2378,9 @@ describe('OCA.Files.FileList tests', function() {
23782378
var $tr = fileList.findFileEl('One.txt');
23792379
$tr.find('td.filename .nametext').click();
23802380
expect(actionStub.calledOnce).toEqual(false);
2381-
expect($tr.find('td.filename .fileActionsAppDrawer').length).toEqual(1);
2382-
expect($tr.find('td.filename .fileActionsAppDrawer a').length).toEqual(2);
2383-
var firstAction = $tr.find('td.filename .fileActionsAppDrawer a')[0];
2381+
expect($tr.find('td.filename .fileActionsApplicationSelectMenu').length).toEqual(1);
2382+
expect($tr.find('td.filename .fileActionsApplicationSelectMenu a').length).toEqual(2);
2383+
var firstAction = $tr.find('td.filename .fileActionsApplicationSelectMenu a')[0];
23842384
firstAction.click();
23852385
expect(actionStub.calledOnce).toEqual(true);
23862386
});

0 commit comments

Comments
 (0)
X Tutup