summaryrefslogtreecommitdiff
path: root/js/PrefHelpers.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-03-07 20:24:44 +0300
committerAndrew Dolgov <[email protected]>2021-03-07 20:24:44 +0300
commit5db6939dc9628886391bcaa18965de94727c96d9 (patch)
tree025afab6258ce3de3870739c587f222488cac1dc /js/PrefHelpers.js
parent603cc8963871fe382ee71a083692ff0d81460322 (diff)
add to previous a bit
Diffstat (limited to 'js/PrefHelpers.js')
-rw-r--r--js/PrefHelpers.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/js/PrefHelpers.js b/js/PrefHelpers.js
index eaa571a89..fdf282090 100644
--- a/js/PrefHelpers.js
+++ b/js/PrefHelpers.js
@@ -614,6 +614,7 @@ const Helpers = {
const container = dialog.domNode.querySelector(".update-results");
console.log('updating', dialog.plugins_to_update);
+ dialog.attr('title', __('Updating...'));
container.innerHTML = `<li class='text-center'>${__("Updating, please wait...")}</li>`;
let enable_update_btn = false;
@@ -626,7 +627,7 @@ const Helpers = {
container.innerHTML = "";
reply.forEach((p) => {
- if (p.rv.s == 0)
+ if (p.rv.git_status == 0)
dialog.need_refresh = true;
else
enable_update_btn = true;
@@ -646,6 +647,7 @@ const Helpers = {
});
}
+ dialog.attr('title', __('Updates complete'));
dijit.getEnclosingWidget(dialog.domNode.querySelector(".update-btn")).attr('disabled', !enable_update_btn);
});
},