Browse Source

insert konfiguration message

andre 4 years ago
parent
commit
04e9106a13
3 changed files with 11 additions and 0 deletions
  1. 9 0
      app/UI/Vms/Pages/VmsDataTable.php
  2. 1 0
      langs/english.php
  3. 1 0
      langs/german.php

+ 9 - 0
app/UI/Vms/Pages/VmsDataTable.php

@@ -125,6 +125,15 @@ class VmsDataTable extends DataTable implements ClientArea, AdminArea
             return '<span class="lu-label lu-label--danger lu-label--status">' . sl('lang')->abtr($status) . '</span>';
         }catch (\Exception $ex){
 //            if (str_starts_with('Configuration file', $ex->getMessage())) {
+
+    logModuleCall(
+        'proxmoxCloud',
+        __FUNCTION__,
+        $ex->getMessage(),
+        'Debug',
+        $ex->getCode()
+    );
+    
                 return '<span class="lu-label lu-label--danger lu-label--status">' . 'Vm wird konfiguriert' . '</span>';
 //            }
 //            return '<span class="lu-label lu-label--danger lu-label--status">' . $ex->getMessage() . '</span>';

+ 1 - 0
langs/english.php

@@ -1051,6 +1051,7 @@ $_LANG['serverCA']['home']['mainContainer']['dataTable']['deleteButton']['button
 $_LANG['stopped'] = 'Stopped';
 $_LANG['Build'] = 'Build';
 $_LANG['running'] = 'Running';
+$_LANG['unknown'] = 'Configuration in progress';
 $_LANG['The Virtual Machine has been shut down successfully'] = 'The Virtual Machine has been shut down successfully';
 $_LANG['The Virtual Machine has been stopped successfully'] = 'The Virtual Machine has been stopped successfully';
 $_LANG['The Virtual Machine has been rebooted successfully'] = 'The Virtual Machine has been rebooted successfully';

+ 1 - 0
langs/german.php

@@ -1054,6 +1054,7 @@ $_LANG['serverCA']['vms']['mainContainer']['dataTable']['deleteButton']['button'
 $_LANG['stopped'] = 'gestoppt';
 $_LANG['Build'] = 'in Erstellung';
 $_LANG['running'] = 'läuft';
+$_LANG['unknown'] = 'Vm wird konfiguriert';
 $_LANG['The Virtual Machine has been shut down successfully'] = 'Die VM wurde heruntergefahren';
 $_LANG['The Virtual Machine has been stopped successfully'] = 'Die VM wurde gestoppt';
 $_LANG['The Virtual Machine has been rebooted successfully'] = 'Die VM wurde neu gestartet';