stuff
This commit is contained in:
parent
6bab7a75fb
commit
478c8278f0
|
@ -7929,14 +7929,16 @@
|
||||||
|
|
||||||
InternalComponents.LibraryComponents.ModalComponents.ModalTabContent = InternalBDFDB.loadPatchedComp("ModalComponents.ModalTabContent") || reactInitialized && class BDFDB_ModalTabContent extends LibraryModules.React.Component {
|
InternalComponents.LibraryComponents.ModalComponents.ModalTabContent = InternalBDFDB.loadPatchedComp("ModalComponents.ModalTabContent") || reactInitialized && class BDFDB_ModalTabContent extends LibraryModules.React.Component {
|
||||||
render() {
|
render() {
|
||||||
return BDFDB.ReactUtils.createElement(this.props.scroller ? InternalComponents.LibraryComponents.ScrollerThin : "div", Object.assign({tab:"unnamed"}, BDFDB.ObjectUtils.exclude(this.props, "scroller", "open"), {
|
return BDFDB.ReactUtils.createElement(this.props.scroller ? InternalComponents.LibraryComponents.ScrollerThin : "div", Object.assign(BDFDB.ObjectUtils.exclude(this.props, "scroller", "open", "render"), {
|
||||||
className: BDFDB.DOMUtils.formatClassName(BDFDB.disCN.modaltabcontent, this.props.open && BDFDB.disCN.modaltabcontentopen, this.props.className),
|
className: BDFDB.DOMUtils.formatClassName(BDFDB.disCN.modaltabcontent, this.props.open && BDFDB.disCN.modaltabcontentopen, this.props.className),
|
||||||
style: Object.assign({}, this.props.style, {
|
style: Object.assign({}, this.props.style, {
|
||||||
display: this.props.open ? null : "none"
|
display: this.props.open ? null : "none"
|
||||||
})
|
}),
|
||||||
|
children: !this.props.open && !this.props.render ? null : this.props.children
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
InternalBDFDB.setDefaultProps(InternalComponents.LibraryComponents.PaginatedList, {tab:"unnamed", render:true});
|
||||||
|
|
||||||
InternalComponents.LibraryComponents.NavItem = BDFDB.ModuleUtils.findByName("NavItem");
|
InternalComponents.LibraryComponents.NavItem = BDFDB.ModuleUtils.findByName("NavItem");
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -192,6 +192,7 @@ var PluginRepo = (_ => {
|
||||||
BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.ModalComponents.ModalTabContent, {
|
BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.ModalComponents.ModalTabContent, {
|
||||||
tab: "Plugins",
|
tab: "Plugins",
|
||||||
open: this.props.tab == "Plugins",
|
open: this.props.tab == "Plugins",
|
||||||
|
render: false,
|
||||||
children: loading.is ? BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.Flex, {
|
children: loading.is ? BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.Flex, {
|
||||||
direction: BDFDB.LibraryComponents.Flex.Direction.VERTICAL,
|
direction: BDFDB.LibraryComponents.Flex.Direction.VERTICAL,
|
||||||
justify: BDFDB.LibraryComponents.Flex.Justify.CENTER,
|
justify: BDFDB.LibraryComponents.Flex.Justify.CENTER,
|
||||||
|
@ -220,6 +221,7 @@ var PluginRepo = (_ => {
|
||||||
BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.ModalComponents.ModalTabContent, {
|
BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.ModalComponents.ModalTabContent, {
|
||||||
tab: BDFDB.LanguageUtils.LanguageStrings.SETTINGS,
|
tab: BDFDB.LanguageUtils.LanguageStrings.SETTINGS,
|
||||||
open: this.props.tab == BDFDB.LanguageUtils.LanguageStrings.SETTINGS,
|
open: this.props.tab == BDFDB.LanguageUtils.LanguageStrings.SETTINGS,
|
||||||
|
render: false,
|
||||||
children: [
|
children: [
|
||||||
!automaticLoading && BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.Flex, {
|
!automaticLoading && BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.Flex, {
|
||||||
className: BDFDB.disCN.marginbottom20,
|
className: BDFDB.disCN.marginbottom20,
|
||||||
|
|
Loading…
Reference in New Issue