Skip to content

Commit

Permalink
AdminPackageManager: Disable button when required packages or perl mo…
Browse files Browse the repository at this point in the history
…dules not installed or updated yet.
  • Loading branch information
NiklasSchmitt committed Jul 14, 2023
1 parent 1f4d402 commit 465a0fb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion Kernel/Output/HTML/Templates/Standard/AdminPackageManager.tt
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,11 @@
<input type="hidden" name="[% Data.Type | html %]" value="1"/>
<input type="hidden" name="Name" value="[% Data.Name | html %]"/>
<input type="hidden" name="Version" value="[% Data.Version | html %]"/>
<button class="Primary CallForAction" type="submit" value="[% Translate("Continue") | html %]"><span>[% Translate("Continue") | html %]</span></button>


<button class="Primary CallForAction [% IF Data.PackageRequired || Data.ModuleRequired %] Disabled[% END %]" type="submit" value="[% Translate("Continue") | html %]"[% IF Data.PackageRequired || Data.ModuleRequired %] disabled[% END %]>
<span>[% Translate("Continue") | html %]</span>
</button>
[% RenderBlockStart("IntroCancel") %]
[% Translate("or") | html %]
<a href="[% Env("Baselink") %]Action=[% Env("Action") %]"><span>[% Translate("Cancel") | html %]</span></a>
Expand Down
2 changes: 1 addition & 1 deletion var/httpd/htdocs/js/Core.Agent.Admin.PackageManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ Core.Agent.Admin = Core.Agent.Admin || {};
* @memberof Core.Agent.Admin.PackageManager
* @function
* @description
* Tis function activate all package actions.
* This function activate all package actions.
*/
TargetNS.EnablePackageActions = function() {
$('.PackageAction').removeClass('Disabled').off('click');
Expand Down

0 comments on commit 465a0fb

Please sign in to comment.