`Filter` dropdown has li elements

This commit is contained in:
daria 2023-11-12 19:39:47 +02:00
parent 2b2efd2fe6
commit 7e37c0bf6b
1 changed files with 13 additions and 3 deletions

View File

@ -3354,7 +3354,7 @@ define([
attributes: attributes,
content: [
getIcon(type)[0],
{ tag: 'span', content: Messages.type[type] },
Messages.type[type]
],
});
});
@ -3369,7 +3369,7 @@ define([
},
content: [
getIcon('link')[0],
{ tag: 'span', content: Messages.fm_link_type },
Messages.fm_link_type
],
});
options.push({
@ -3381,10 +3381,20 @@ define([
},
content: [
getIcon('file')[0],
{ tag: 'span', content: Messages.type['file'] },
Messages.type['file']
],
});
}
// wrap the option in a li tag
options = options.map(function (obj) {
if (obj.tag === 'hr') {
return { tag: 'hr' };
}
return {
tag: 'li',
content: obj
};
});
var dropdownConfig = {
buttonContent: [
h('i.fa.fa-filter'),