This commit is contained in:
Mirco Wittrien 2020-11-11 10:16:57 +01:00
parent 05dbcfa11b
commit d55ecb00e1
2 changed files with 18 additions and 10 deletions

View File

@ -4447,6 +4447,18 @@ module.exports = (_ => {
let controls = [].concat(this.props.controls).flat(10).filter(n => n);
let links = [].concat(this.props.links).flat(10).filter(n => n);
let buttons = [].concat(this.props.buttons).flat(10).filter(n => n);
let meta = [
" v",
BDFDB.ReactUtils.createElement("span", {
className: BDFDB.disCN._repoversion,
children: this.props.data.version
}),
" by ",
BDFDB.ReactUtils.createElement("span", {
className: BDFDB.disCN._repoauthor,
children: this.props.data.author
})
];
return !BDFDB.ObjectUtils.is(this.props.data) ? null : BDFDB.ReactUtils.createElement("div", {
className: BDFDB.DOMUtils.formatClassName(BDFDB.disCN._repoentry, this.props.className, BDFDB.disCN._repocard, BDFDB.disCN._reposettingsclosed, BDFDB.disCN._repocheckboxitem),
children: [
@ -4461,16 +4473,10 @@ module.exports = (_ => {
className: BDFDB.disCN._reponame,
children: this.props.data.name
}),
" v",
BDFDB.ReactUtils.createElement("span", {
className: BDFDB.disCN._repoversion,
children: this.props.data.version
}),
" by ",
BDFDB.ReactUtils.createElement("span", {
className: BDFDB.disCN._repoauthor,
children: this.props.data.author
})
isBeta ? BDFDB.ReactUtils.createElement("div", {
className: BDFDB.disCN._repometa,
children: meta
}) : meta
]
}),
controls.length && BDFDB.ReactUtils.createElement(InternalComponents.LibraryComponents.Flex, {

View File

@ -455,6 +455,7 @@
"bdGuildUnread": "bd-unread",
"bdGuildVideo": "bd-video",
"bdIcon": "bd-icon",
"bdMeta": "bd-meta",
"bdPillSelected": "bd-selected",
"bdPillUnread": "bd-unread",
"bdPfbtn": "bd-pfbtn",
@ -1067,6 +1068,7 @@
"_repolistwrapper": ["BDFDB", "bdaRepoListWrapper"],
"_repolink": ["BDrepo", "bdaLink"],
"_repolinks": ["BDrepo", "bdaLinks"],
"_repometa": ["BDrepo", "bdMeta"],
"_repomodal": ["BDrepo", "bdAddonModal"],
"_reponame": ["BDrepo", "bdaName"],
"_reposettings": ["BDrepo", "settings"],