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

Bugfixes

parent 9bcb68b6
......@@ -14,13 +14,14 @@
class="text-center header-label"></div>
</div>
</div>
<div class="text-right d-flex align-items-center cursor-pointer p-0">
<svg #connectionIndicatorPopover="ngbPopover"
#connectionIndicator
[ngbPopover]="(connectionService.websocketAvailable ? 'region.header.connection_status.connected' : 'region.header.connection_status.disconnected') | translate"
<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">
<svg #connectionIndicator
#connectionIndicatorPopover="ngbPopover"
(click)="openConnectionQualityModal(connectionQualityModal)"
id="connection-indicator"
[ngbPopover]="(connectionService.serverAvailable ? 'region.header.connection_status.connected' : 'region.header.connection_status.disconnected') | translate"
height="50px"
id="connection-indicator"
triggers="manual"
version="1.1"
viewBox="0 0 128 128"
......@@ -33,10 +34,10 @@
id="firstRow"></path>
<path d="M80.057,62.309c-4.579-2.104-9.994-3.537-16.047-3.533c-6.053-0.004-11.466,1.429-16.045,3.531 c-5.233,2.405-9.402,5.632-12.597,8.701l8.486,8.486c0.45-0.426,0.917-0.854,1.411-1.275c2.287-1.965,5.03-3.842,8.151-5.205 c3.128-1.365,6.615-2.234,10.594-2.238c4.171,0.004,7.806,0.961,11.048,2.441c3.594,1.641,6.674,3.975,9.104,6.273l8.486-8.486 c-0.391-0.375-0.793-0.752-1.213-1.131C88.422,67.166,84.645,64.413,80.057,62.309z"
id="secondRow"></path>
<path *ngIf="!connectionService.lowSpeed && indexedDbAvailable"
<path *ngIf="!connectionService.lowSpeed && connectionService.serverAvailable"
d="M104.078,55.731c-4.45-3.999-10.01-8.043-16.711-11.116c-6.693-3.072-14.553-5.151-23.369-5.147 c-8.815-0.003-16.674,2.074-23.366,5.145c-7.741,3.555-13.948,8.383-18.692,12.967l8.487,8.487 c0.602-0.578,1.22-1.156,1.874-1.734c3.733-3.307,8.295-6.542,13.581-8.925c5.294-2.384,11.29-3.937,18.116-3.94 c6.934,0.003,13.014,1.606,18.369,4.056c6.101,2.788,11.225,6.728,15.211,10.55l8.484-8.484 C105.424,56.973,104.77,56.354,104.078,55.731z"
id="thirdRow"></path>
<path *ngIf="!connectionService.lowSpeed && !connectionService.mediumSpeed && indexedDbAvailable"
<path *ngIf="!connectionService.lowSpeed && !connectionService.mediumSpeed && connectionService.serverAvailable"
d="M97.259,27.395c-9.55-4.381-20.715-7.333-33.265-7.33c-12.55-0.003-23.712,2.946-33.26,7.325 c-9.341,4.287-17.149,9.901-23.464,15.519l8.502,8.502c5.602-4.907,12.416-9.71,20.346-13.286 c8.119-3.658,17.374-6.056,27.876-6.06c10.668,0.003,20.053,2.479,28.266,6.239c7.766,3.553,14.46,8.291,19.973,13.117 l8.498-8.498C114.414,37.307,106.601,31.678,97.259,27.395z"
id="fourthRow"></path>
</g>
......@@ -109,10 +110,10 @@
</li>
</ul>
<p class="text-muted">{{'region.header.connection_status.estimated-storage-quota.label' | translate}}:</p>
<p class="text-muted mb-0">{{'region.header.connection_status.estimated-storage-quota.label' | translate}}:</p>
<p class="mb-3">
<span *ngIf="!storage.quota">{{'region.header.connection_status.estimated-storage-quota.not_available' | translate}}</span>
<span *ngIf="storage.quota">{{'region.header.connection_status.estimated-storage-quota.currently-used' | translate:{QUOTA: i18nService.formatNumber(storage.quota / 1024 / 1024), USAGE: i18nService.formatNumber(storage.usage / 1024 / 1024)} }}</span>
<span *ngIf="storage.quota">{{'region.header.connection_status.estimated-storage-quota.currently-used' | translate:{QUOTA: i18nService.formatNumber(round(storage.quota / 1024 / 1024)), USAGE: i18nService.formatNumber(round(storage.usage / 1024 / 1024))} }}</span>
</p>
<div>
......
......@@ -77,9 +77,10 @@ export class HeaderComponent implements OnInit, OnDestroy {
public generateConnectionQualityColor(): void {
const cssClass = this.connectionService.lowSpeed || //
this.connectionService.mediumSpeed || //
!this.indexedDbAvailable ? 'fill-danger' : //
this.connectionService.mediumSpeed ? 'fill-danger' : //
!this.connectionService.serverAvailable || !this.connectionService.websocketAvailable ? 'fill-grey' : 'fill-success';
!this.connectionService.serverAvailable || !this.connectionService.websocketAvailable ? 'fill-grey' : //
'fill-success';
this.connectionIndicator.nativeElement.classList.remove(...['fill-danger', 'fill-grey', 'fill-success']);
this.connectionIndicator.nativeElement.classList.add(cssClass);
......@@ -170,6 +171,10 @@ export class HeaderComponent implements OnInit, OnDestroy {
}
}
public round(number: number): number {
return Math.round(number);
}
private sanitizeStyle(value: string): SafeStyle {
if (isPlatformServer(this.platformId)) {
return value;
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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