💄 Add tooltip to disabled plugin manager install (#4620)

* 💄 Add tooltip to disabled plugin manager install

Closes #4611

* 🌐 Allow translation of disable string
This commit is contained in:
Charlie Powell authored and GitHub committed 2022-09-28 14:58:25 +02:00
1 parent e74f87b07c
commit bbd06a0212
1 file changed
+1 -1
@@ -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>