This commit is contained in:
Mirco Wittrien 2020-03-26 20:20:37 +01:00
parent 4bd3649113
commit dfb8ffae08
4 changed files with 11 additions and 19 deletions

View File

@ -9056,7 +9056,7 @@
};
InternalBDFDB.processV2CContentColumn = function (e) {
if (window.PluginUpdates && window.PluginUpdates.plugins && e.instance.props.title == "Plugins") {
if (window.PluginUpdates && window.PluginUpdates.plugins && typeof e.instance.props.title == "string" && e.instance.props.title.toUpperCase().indexOf("PLUGINS") == 0) {
let [children, index] = BDFDB.ReactUtils.findChildren(e.returnvalue, {key: "folder-button"});
if (index > -1) children.splice(index + 1, 0, BDFDB.ReactUtils.createElement(InternalComponents.LibraryComponents.TooltipContainer, {
text: "Only checks for updates of plugins, which support the updatecheck. Rightclick for a list of supported plugins. (Listed ≠ Outdated)",
@ -9065,7 +9065,7 @@
style: "max-width: 420px"
},
children: BDFDB.ReactUtils.createElement("button", {
className: `${BDFDB.disCN._repofolderbutton} bd-updatebtn`,
className: `${BDFDB.disCNS._repobutton + BDFDB.disCN._repofolderbutton} bd-updatebtn`,
onClick: _ => {
let toast = BDFDB.NotificationUtils.toast("Plugin update check in progress.", {type: "info", timeout: 0});
BDFDB.PluginUtils.checkAllUpdates().then(outdated => {

File diff suppressed because one or more lines are too long

View File

@ -69,17 +69,13 @@ var PluginRepo = (_ => {
return class PluginRepo {
getName () {return "PluginRepo";}
getVersion () {return "1.9.3";}
getVersion () {return "1.9.4";}
getAuthor () {return "DevilBro";}
getDescription () {return "Allows you to look at all plugins from the plugin repo and download them on the fly. Repo button is in the plugins settings.";}
constructor () {
this.changelog = {
"fixed":[["Show X","Filter options for the modal work again"]]
};
constructor () {
this.patchedModules = {
after: {
V2C_ContentColumn: "render"
@ -298,12 +294,12 @@ var PluginRepo = (_ => {
}
processV2CContentColumn (e) {
if (e.instance.props.title == "Plugins") {
if (typeof e.instance.props.title == "string" && e.instance.props.title.toUpperCase().indexOf("PLUGINS") == 0) {
let [children, index] = BDFDB.ReactUtils.findChildren(e.returnvalue, {key: "folder-button"});
if (index > -1) children.splice(index + 1, 0, BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.TooltipContainer, {
text: "Open Plugin Repo",
children: BDFDB.ReactUtils.createElement("button", {
className: `${BDFDB.disCN._repofolderbutton} bd-pluginrepobutton`,
className: `${BDFDB.disCNS._repobutton + BDFDB.disCN._repofolderbutton} bd-pluginrepobutton`,
onClick: _ => {this.openPluginRepoModal();},
children: "PluginRepo"
})

View File

@ -125,17 +125,13 @@ var ThemeRepo = (_ => {
return class ThemeRepo {
getName () {return "ThemeRepo";}
getVersion () {return "1.9.3";}
getVersion () {return "1.9.4";}
getAuthor () {return "DevilBro";}
getDescription () {return "Allows you to preview all themes from the theme repo and download them on the fly. Repo button is in the theme settings.";}
constructor () {
this.changelog = {
"fixed":[["Show X","Filter options for the modal work again"]]
};
constructor () {
this.patchedModules = {
after: {
V2C_ContentColumn: "render"
@ -364,12 +360,12 @@ var ThemeRepo = (_ => {
}
processV2CContentColumn (e) {
if (e.instance.props.title == "Themes") {
if (typeof e.instance.props.title == "string" && e.instance.props.title.toUpperCase().indexOf("THEMES") == 0) {
let [children, index] = BDFDB.ReactUtils.findChildren(e.returnvalue, {key: "folder-button"});
if (index > -1) children.splice(index + 1, 0, BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.TooltipContainer, {
text: "Open Theme Repo",
children: BDFDB.ReactUtils.createElement("button", {
className: `${BDFDB.disCN._repofolderbutton} bd-themerepobutton`,
className: `${BDFDB.disCNS._repobutton + BDFDB.disCN._repofolderbutton} bd-themerepobutton`,
onClick: _ => {this.openThemeRepoModal();},
children: "ThemeRepo"
})