Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/OctoPrint/OctoPrint.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharlie Powell <31997505+cp2004@users.noreply.github.com>2022-09-28 15:58:25 +0300
committerGitHub <noreply@github.com>2022-09-28 15:58:25 +0300
commitbbd06a0212d3a0dfd300555ffd6387a5e8d36173 (patch)
treeb619ac855933840d11534a66903bee18df5b6111
parente74f87b07ccad219c5b00faa3bfab99c1311bd6c (diff)
:lipstick: Add tooltip to disabled plugin manager install (#4620)
* :lipstick: Add tooltip to disabled plugin manager install Closes #4611 * :globe_with_meridians: Allow translation of disable string
-rw-r--r--src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja22
1 files changed, 1 insertions, 1 deletions
diff --git a/src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2 b/src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2
index f4572dc67..49bcf6705 100644
--- a/src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2
+++ b/src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2
@@ -267,7 +267,7 @@
<div class="row-fluid">
<div class="span12">
<div class="span3 pull-right">
- <button class="btn btn-primary btn-block" data-bind="enable: $root.enableRepoInstall($data), css: {disabled: !$root.enableRepoInstall($data)}, click: function() { if ($root.enableRepoInstall($data)) { $root.installFromRepository($data); } else { return false; } }"><span data-bind="text: $root.installButtonText($data)"></span></button>
+ <button class="btn btn-primary btn-block" data-bind="enable: $root.enableRepoInstall($data), css: {disabled: !$root.enableRepoInstall($data)}, click: function() { if ($root.enableRepoInstall($data)) { $root.installFromRepository($data); } else { return false; } }, attr: {title: !$root.enableRepoInstall($data) ? gettext('Plugin install is disabled') : ''}"><span data-bind="text: $root.installButtonText($data)"></span></button>
<div data-bind="visible: $data.disabled !== undefined" style="text-align: center"><small><a data-bind="attr: {href: page}" target="_blank">{{ _('"Why?"') }}</a></small></div>
</div>
<div>