diff options
author | 0neGal <mail@0negal.com> | 2023-01-27 11:54:36 +0100 |
---|---|---|
committer | 0neGal <mail@0negal.com> | 2023-01-28 01:18:45 +0100 |
commit | 7fea75e8b064e5ca241a044e6efb3a315b6cd882 (patch) | |
tree | b5b1f67676457c8fef9bff31b2a0f21a114bc5f5 /src/app/js/browser.js | |
parent | feef5a6c98239a2c08433aec1bbc4e5510a79e32 (diff) | |
download | Viper-7fea75e8b064e5ca241a044e6efb3a315b6cd882.tar.gz Viper-7fea75e8b064e5ca241a044e6efb3a315b6cd882.zip |
initial draft for redesign of the mod list
The current design for the installed mods is not exactly the best. And
it has been due for a redesign for quite a while, I'm finally starting
work on this.
Diffstat (limited to 'src/app/js/browser.js')
-rw-r--r-- | src/app/js/browser.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/app/js/browser.js b/src/app/js/browser.js index dee263b..cfd0c03 100644 --- a/src/app/js/browser.js +++ b/src/app/js/browser.js @@ -319,8 +319,13 @@ function BrowserEl(properties) { } let installstr = lang("gui.browser.install"); + let normalized_mods = []; - if (normalize(modsdiv.innerText.split("\n")).includes(normalize(properties.title))) { + for (let i = 0; i < modsobj.all; i++) { + normalized_mods.push(normalize(mods_list[i].Name)); + } + + if (normalized_mods.includes(normalize(properties.title))) { installstr = lang("gui.browser.reinstall"); for (let i = 0; i < modsobj.all.length; i++) { |