返回提交历史
Modified
static/webui/script.js
+12
-8
XFEstudio/SpaceNinjaServer
chore(webui): toast error message when mods acquisition failed (#3353)
Closes #3334 Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/3353 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
472b58a0
代码差异
1 个文件
+12
-8
@@ -3166,14 +3166,18 @@ function doAcquireMod() {
3166
3166
: undefined
3167
3167
}
3168
3168
])
3169
}).done(function () {
3170
if (count > 0) {
3171
toast(loc("code_succAdded"));
3172
} else {
3173
toast(loc("code_succRemoved"));
3174
}
3175
updateInventory();
3176
});
3169
})
3170
.done(function () {
3171
if (count > 0) {
3172
toast(loc("code_succAdded"));
3173
} else {
3174
toast(loc("code_succRemoved"));
3175
}
3176
updateInventory();
3177
})
3178
.fail(r => {
3179
toast(r.responseText);
3180
});
3177
3181
});
3178
3182
}
3179
3183
}