Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ Resources needed for one month of hot log storage.
- You may combine these tiers to allocate resources based on the number of devices and desired hot log storage retention

## Installation steps
The installation can be performed using an installer file or an [ISO image](https://utmstack.com/install). The "Preparing for installation" instructions below are only for the installer file option; please skip them if you use the ISO image instead.

### Preparing for installation

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,6 @@ export class LoginComponent implements OnInit, AfterViewInit {

this.apiServiceCheckerService.isOnlineApi$.subscribe(result => {
if (result) {
this.startNavigation();

this.activatedRoute.queryParams.subscribe(params => {
if (params.token) {
this.loginService.loginWithToken(params.token, true).then(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ export class UtmNotificationAlertComponent implements OnInit, OnDestroy {
}

ngOnDestroy() {
console.log('destroy');
this.destroy$.next(true);
clearInterval(this.timeoutAlert);
clearInterval(this.intervalAlert);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {Directive, Input, TemplateRef, ViewContainerRef} from '@angular/core';
import {distinctUntilChanged} from 'rxjs/operators';
import {AccountService} from '../../../core/auth/account.service';

/**
Expand Down Expand Up @@ -30,7 +31,9 @@ export class HasAnyAuthorityDirective {
this.authorities = typeof value === 'string' ? [value] : value;
this.updateView();
// Get notified each time authentication state changes.
this.accountService.getAuthenticationState().subscribe(identity => this.updateView());
this.accountService.getAuthenticationState()
.pipe(distinctUntilChanged((prev, next) => prev && next && prev.id === next.id))
.subscribe(identity => this.updateView());
}

private updateView(): void {
Expand Down
7 changes: 7 additions & 0 deletions frontend/src/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1292,5 +1292,12 @@ $topnav-background-color: #FFFFFF;
}
}

app-rules {
.ng-select .ng-select-container {
min-height: 33px !important;
height: auto !important;
}
}