Update ShowHiddenChannels.plugin.js

This commit is contained in:
Mirco Wittrien 2019-11-12 23:05:47 +01:00
parent bbd69216a7
commit cd83ee76a9
1 changed files with 24 additions and 20 deletions

View File

@ -3,7 +3,7 @@
class ShowHiddenChannels {
getName () {return "ShowHiddenChannels";}
getVersion () {return "2.5.8";}
getVersion () {return "2.5.9";}
getAuthor () {return "DevilBro";}
@ -369,15 +369,19 @@ class ShowHiddenChannels {
}, {
title: BDFDB.LanguageUtils.LanguageStrings.CATEGORY_NAME,
text: category && category.name || BDFDB.LanguageUtils.LanguageStrings.NO_CATEGORY
}].map(formlabel =>
}].map((formlabel, i) => [,
i == 0 ? null : BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.FormComponents.FormDivider, {
className: BDFDB.disCN.marginbottom20
}),
BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.FormComponents.FormItem, {
title: formlabel.title,
className: BDFDB.disCN.marginbottom20,
title: `${formlabel.title}:`,
className: BDFDB.DOMUtils.formatClassName(BDFDB.disCN.marginbottom20, i == 0 && BDFDB.disCN.margintop8),
children: BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.FormComponents.FormText, {
className: BDFDB.disCN.marginleft8,
children: formlabel.text
})
})
)
]).flat().filter(n => n)
}),
BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.ModalComponents.ModalTabContent, {
tab: this.labels.modal_allowed_text,