Skip to content

Commit a617d1e

Browse files
committed
Improved feedback in GUI from extension installer.
1 parent 5b4cab7 commit a617d1e

28 files changed

+588
-0
lines changed

interface/lib/classes/extension_installer.inc.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,4 +362,15 @@ public function getServerName($server_id) {
362362
return $record['server_name'];
363363
}
364364

365+
/**
366+
* Get the list of pending extensions to install
367+
* @return array
368+
*/
369+
public function getPendingInstalls() {
370+
global $app;
371+
$sql = 'SELECT * FROM `sys_remoteaction` WHERE `action_type` = ? and `action_state` = ?';
372+
$records = $app->db->queryAllRecords($sql, 'extension_install', 'pending');
373+
return $records;
374+
}
375+
365376
}

interface/web/admin/extension_install_list.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,10 @@
6363
include $lng_file;
6464
$app->tpl->setVar($wb);
6565

66+
// Check if there are any pending installs in sys_remoteaction
67+
$pending_installs = $app->extension_installer->getPendingInstalls();
68+
69+
$app->tpl->setVar('has_pending_installs', !empty($pending_installs));
70+
6671
$app->tpl_defaults();
6772
$app->tpl->pparse();

interface/web/admin/lib/lang/ar_extension_install_list.lng

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,5 @@ $wb['repo_version_txt'] = 'إصدار المستودع';
4444
$wb['no_records_txt'] = 'لا توجد إضافات';
4545
$wb['postinstall_info_txt'] = 'معلومات';
4646
$wb['free_limits_txt'] = 'حدود الاستخدام المجاني';
47+
$wb['pending_installs_txt'] = 'There are pending extensions to install. Please wait a minute, they will show up in the list soon.';
4748
?>

interface/web/admin/lib/lang/bg_extension_install_list.lng

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,5 @@ $wb['repo_version_txt'] = 'Версия в хранилището';
4444
$wb['no_records_txt'] = 'Не са намерени разширения';
4545
$wb['postinstall_info_txt'] = 'Информация';
4646
$wb['free_limits_txt'] = 'Ограничения за безплатно ползване';
47+
$wb['pending_installs_txt'] = 'There are pending extensions to install. Please wait a minute, they will show up in the list soon.';
4748
?>

interface/web/admin/lib/lang/br_extension_install_list.lng

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,5 @@ $wb['repo_version_txt'] = 'Versão do Repositório';
4444
$wb['no_records_txt'] = 'Nenhuma extensão encontrada';
4545
$wb['postinstall_info_txt'] = 'Informação';
4646
$wb['free_limits_txt'] = 'Limites de uso gratuito';
47+
$wb['pending_installs_txt'] = 'There are pending extensions to install. Please wait a minute, they will show up in the list soon.';
4748
?>

interface/web/admin/lib/lang/ca_extension_install_list.lng

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,5 @@ $wb['repo_version_txt'] = 'Versió del Repositori';
4444
$wb['no_records_txt'] = 'No s\'han trobat extensions';
4545
$wb['postinstall_info_txt'] = 'Informació';
4646
$wb['free_limits_txt'] = 'Límits d\'ús gratuït';
47+
$wb['pending_installs_txt'] = 'There are pending extensions to install. Please wait a minute, they will show up in the list soon.';
4748
?>

interface/web/admin/lib/lang/cn_extension_install_list.lng

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,5 @@ $wb['repo_version_txt'] = '存储库版本';
4444
$wb['no_records_txt'] = '未找到扩展';
4545
$wb['postinstall_info_txt'] = '信息';
4646
$wb['free_limits_txt'] = '免费使用限制';
47+
$wb['pending_installs_txt'] = 'There are pending extensions to install. Please wait a minute, they will show up in the list soon.';
4748
?>

interface/web/admin/lib/lang/cz_extension_install_list.lng

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,5 @@ $wb['repo_version_txt'] = 'Verze v repozitáři';
4444
$wb['no_records_txt'] = 'Nebyly nalezeny žádné rozšíření';
4545
$wb['postinstall_info_txt'] = 'Informace';
4646
$wb['free_limits_txt'] = 'Limity bezplatného používání';
47+
$wb['pending_installs_txt'] = 'There are pending extensions to install. Please wait a minute, they will show up in the list soon.';
4748
?>

interface/web/admin/lib/lang/de_extension_install_list.lng

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@ $wb['server_id_txt'] = 'Server ID';
1010
$wb['no_records_txt'] = 'Keine Erweiterungen gefunden';
1111
$wb['postinstall_info_txt'] = 'Info';
1212
$wb['free_limits_txt'] = 'Einschränkungen für kostenlose Nutzung';
13+
$wb['pending_installs_txt'] = 'Es gibt ausstehende Erweiterungen. Sie werden bald in der Liste erscheinen.';
1314
?>

interface/web/admin/lib/lang/dk_extension_install_list.lng

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,5 @@ $wb['repo_version_txt'] = 'Repository Version';
4444
$wb['no_records_txt'] = 'Ingen udvidelser fundet';
4545
$wb['postinstall_info_txt'] = 'Info';
4646
$wb['free_limits_txt'] = 'Gratis-brug begrænsninger';
47+
$wb['pending_installs_txt'] = 'There are pending extensions to install. Please wait a minute, they will show up in the list soon.';
4748
?>

0 commit comments

Comments
 (0)