Update 0BDFDB.plugin.js
This commit is contained in:
parent
f52ef35e2e
commit
e3b88b6c12
|
@ -4512,22 +4512,26 @@ module.exports = (_ => {
|
||||||
href: data.href,
|
href: data.href,
|
||||||
children: data.icon || data.label
|
children: data.icon || data.label
|
||||||
});
|
});
|
||||||
return !isBeta ? [
|
if (!isBeta) return [
|
||||||
i > 0 && " | ",
|
i > 0 && " | ",
|
||||||
link
|
link
|
||||||
] : BDFDB.ReactUtils.createElement("div", {
|
];
|
||||||
className: BDFDB.disCN._repocontrolsbutton,
|
else {
|
||||||
onClick: e => {
|
let button = BDFDB.ReactUtils.createElement("div", {
|
||||||
if (typeof data.onClick == "function") {
|
className: BDFDB.disCN._repocontrolsbutton,
|
||||||
BDFDB.ListenerUtils.stopEvent(e);
|
children: link,
|
||||||
data.onClick();
|
onClick: e => {
|
||||||
|
if (typeof data.onClick == "function") {
|
||||||
|
BDFDB.ListenerUtils.stopEvent(e);
|
||||||
|
data.onClick();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
});
|
||||||
children: typeof data.label == "string" ? BDFDB.ReactUtils.createElement(InternalComponents.LibraryComponents.TooltipContainer, {
|
return typeof data.label == "string" ? BDFDB.ReactUtils.createElement(InternalComponents.LibraryComponents.TooltipContainer, {
|
||||||
text: data.label,
|
text: data.label,
|
||||||
children: link
|
children: button
|
||||||
}) : link
|
}) : button;
|
||||||
});
|
}
|
||||||
}).flat(10).filter(n => n)
|
}).flat(10).filter(n => n)
|
||||||
}),
|
}),
|
||||||
buttons.length && BDFDB.ReactUtils.createElement("div", {
|
buttons.length && BDFDB.ReactUtils.createElement("div", {
|
||||||
|
|
Loading…
Reference in New Issue