GitLab steht aufgrund wichtiger Wartungsarbeiten am Montag, den 8. März, zwischen 17:00 und 19:00 Uhr nicht zur Verfügung.

Fixes i18n of the connection indicator popover

parent a12041ae
......@@ -14,12 +14,11 @@
class="text-center header-label"></div>
</div>
</div>
<div [ngbTooltip]="(connectionService.serverAvailable ? 'region.header.connection_status.connected' : 'region.header.connection_status.disconnected') | translate"
class="text-right d-flex align-items-center cursor-pointer p-0">
<div class="text-right d-flex align-items-center cursor-pointer p-0">
<svg #connectionIndicator
#connectionIndicatorPopover="ngbPopover"
(click)="openConnectionQualityModal(connectionQualityModal)"
[ngbPopover]="(connectionService.serverAvailable ? 'region.header.connection_status.connected' : 'region.header.connection_status.disconnected') | translate"
[ngbPopover]="'region.header.connection_status.disconnected' | translate"
height="50px"
id="connection-indicator"
triggers="manual"
......
......@@ -79,7 +79,7 @@ export class HeaderComponent implements OnInit, OnDestroy {
const cssClass = this.connectionService.lowSpeed || //
this.connectionService.mediumSpeed || //
!this.indexedDbAvailable ? 'fill-danger' : //
!this.connectionService.serverAvailable || !this.connectionService.websocketAvailable ? 'fill-grey' : //
(!this.connectionService.serverAvailable || !this.connectionService.websocketAvailable) ? 'fill-grey' : //
'fill-success';
this.connectionIndicator.nativeElement.classList.remove(...['fill-danger', 'fill-grey', 'fill-success']);
......@@ -102,7 +102,7 @@ export class HeaderComponent implements OnInit, OnDestroy {
this.generateConnectionQualityColor();
if (this.connectionService.serverAvailable || this.headerLabelService.isUnavailableModalOpen) {
if (this.connectionService.websocketAvailable || this.headerLabelService.isUnavailableModalOpen) {
this.connectionIndicatorPopover.close();
} else {
this.connectionIndicatorPopover.open();
......
......@@ -166,8 +166,6 @@
"connected": "Verbunden",
"not_connected": "Nicht verbunden"
},
"connected": "Verbunden",
"not_connected": "Nicht verbunden",
"estimated-storage-quota": {
"label": "Geschätzter Speicherplatz",
"not_available": "Nicht verfügbar - Aktualisierungen müssen manuell gesucht werden!",
......
......@@ -182,8 +182,6 @@
"connected": "Connected",
"not_connected": "Disconnected"
},
"connected": "Connected",
"not_connected": "Disconnected",
"show_result": "Details",
"pending": "Pending...",
"finished_with_errors": "Finished with errors",
......
......@@ -166,8 +166,6 @@
"connected": "Connectado",
"disconnected": "Desconnectado"
},
"connected": "Connectado",
"disconnected": "Desconnectado",
"show_result": "Detalles",
"pending": "Aquilatar …",
"finished_with_errors": "Terminado con errores",
......
......@@ -165,8 +165,6 @@
"connected": "Connecté",
"disconnected": "déconnecté"
},
"connected": "Connecté",
"disconnected": "déconnecté",
"show_result": "Details",
"pending": "en cours…",
"finished_with_errors": "Avec erreurs",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment