Bläddra i källkod

Remove "has-favorites" class from file list table

The "has-favorites" CSS class is no longer used after moving the
favorite mark to the top right corner of the thumbnail, so there is no
need to add it to the table.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
tags/v13.0.0beta1
Daniel Calviño Sánchez 6 år sedan
förälder
incheckning
6b8713e8b6
2 ändrade filer med 0 tillägg och 4 borttagningar
  1. 0
    1
      apps/files/js/tagsplugin.js
  2. 0
    3
      apps/files/tests/js/tagspluginspec.js

+ 0
- 1
apps/files/js/tagsplugin.js Visa fil

@@ -162,7 +162,6 @@

_extendFileList: function(fileList) {
// extend row prototype
fileList.$el.addClass('has-favorites');
var oldCreateRow = fileList._createRow;
fileList._createRow = function(fileData) {
var $tr = oldCreateRow.apply(this, arguments);

+ 0
- 3
apps/files/tests/js/tagspluginspec.js Visa fil

@@ -71,9 +71,6 @@ describe('OCA.Files.TagsPlugin tests', function() {
expect($tr.attr('data-tags').split('|')).toEqual(['tag1', 'tag2', OC.TAG_FAVORITE]);
expect($tr.attr('data-favorite')).toEqual('true');
});
it('adds has-favorites class on table', function() {
expect(fileList.$el.hasClass('has-favorites')).toEqual(true);
});
});
describe('Applying tags', function() {
it('through FileActionsMenu sends request to server and updates icon', function() {

Laddar…
Avbryt
Spara