}
this._button = elBySel('.jsButtonSearchForUpdates');
- if (this._button) this._button.addEventListener('click', this._click.bind(this));
+ if (this._button) {
+ this._button.addEventListener('click', this._click.bind(this));
+
+ const url = new URL(window.location.href);
+ if (url.searchParams.has("searchForUpdates")) {
+ this._click();
+ }
+ }
},
/**
* @param {Event} event
*/
_click: function(event) {
- event.preventDefault();
+ event?.preventDefault();
if (this._button.classList.contains('disabled')) {
return;
</li>
{if $__wcf->session->getPermission('admin.configuration.package.canUpdatePackage') && $__wcf->getAvailableUpdates()}
- <li>
- <a href="{link controller='PackageUpdate'}{/link}" class="jsTooltip" title="{lang}wcf.acp.package.updates{/lang}">
+ <li id="outstandingUpdatesNotification">
+ <a href="{link controller='PackageList' searchForUpdates=true}{/link}" class="jsTooltip" title="{lang}wcf.acp.package.updates{/lang}">
{icon size=16 name='arrows-rotate'}
{icon size=32 name='arrows-rotate'}
<span class="badge badgeUpdate">{#$__wcf->getAvailableUpdates()}</span>