Commit 83515273 authored by Michal Nowikowski's avatar Michal Nowikowski

[#247] various fixes in webui

parent 70fb750a
{
"name": "stork",
"version": "0.6.0",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
},
"private": true,
"dependencies": {
"@angular/animations": "^9.1.2",
"@angular/cdk": "^9.2.1",
"@angular/common": "^9.1.2",
"@angular/compiler": "^9.1.2",
"@angular/core": "^9.1.2",
"@angular/forms": "^9.1.2",
"@angular/platform-browser": "^9.1.2",
"@angular/platform-browser-dynamic": "^9.1.2",
"@angular/router": "^9.1.2",
"@fortawesome/angular-fontawesome": "^0.5.0",
"@fortawesome/fontawesome-free": "^5.11.2",
"@fortawesome/fontawesome-svg-core": "^1.2.25",
"@fortawesome/free-solid-svg-icons": "^5.11.2",
"moment": "^2.24.0",
"moment-timezone": "^0.5.28",
"path": "^0.12.7",
"primeflex": "^1.0.0",
"primeicons": "^2.0.0",
"primeng": "^9.0.5",
"rxjs": "~6.5.5",
"swagger-ui-dist": "^3.25.0",
"tslib": "^1.11.1",
"zone.js": "~0.10.2"
},
"devDependencies": {
"@angular-devkit/build-angular": "~0.901.1",
"@angular/cli": "^9.1.1",
"@angular/compiler-cli": "^9.1.2",
"@angular/language-service": "^9.1.2",
"@types/jasmine": "~3.3.8",
"@types/jasminewd2": "~2.0.3",
"@types/node": "^12.11.1",
"codelyzer": "^5.2.2",
"jasmine-core": "~3.4.0",
"jasmine-spec-reporter": "~4.2.1",
"karma": "~4.1.0",
"karma-chrome-launcher": "~2.2.0",
"karma-coverage-istanbul-reporter": "~2.0.1",
"karma-jasmine": "~2.0.1",
"karma-jasmine-html-reporter": "^1.5.3",
"prettier": "^1.19.1",
"protractor": "^5.4.4",
"ts-node": "~7.0.0",
"tslint": "~5.15.0",
"tslint-angular": "^3.0.2",
"tslint-config-prettier": "^1.18.0",
"tslint-plugin-prettier": "^2.0.1",
"typescript": "~3.8.3",
"yamlinc": "^0.1.10"
}
"name": "stork",
"version": "0.6.0",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
},
"private": true,
"dependencies": {
"@angular/animations": "^9.1.2",
"@angular/cdk": "^9.2.1",
"@angular/common": "^9.1.2",
"@angular/compiler": "^9.1.2",
"@angular/core": "^9.1.2",
"@angular/forms": "^9.1.2",
"@angular/platform-browser": "^9.1.2",
"@angular/platform-browser-dynamic": "^9.1.2",
"@angular/router": "^9.1.2",
"@fortawesome/angular-fontawesome": "^0.5.0",
"@fortawesome/fontawesome-free": "^5.11.2",
"@fortawesome/fontawesome-svg-core": "^1.2.25",
"@fortawesome/free-solid-svg-icons": "^5.11.2",
"moment": "^2.24.0",
"moment-timezone": "^0.5.28",
"path": "^0.12.7",
"primeflex": "^1.0.0",
"primeicons": "^2.0.0",
"primeng": "^9.0.5",
"rxjs": "~6.5.5",
"swagger-ui-dist": "^3.25.0",
"tslib": "^1.11.1",
"zone.js": "~0.10.2"
},
"devDependencies": {
"@angular-devkit/build-angular": "~0.901.1",
"@angular/cli": "^9.1.1",
"@angular/compiler-cli": "^9.1.2",
"@angular/language-service": "^9.1.2",
"@types/jasmine": "~3.3.8",
"@types/jasminewd2": "~2.0.3",
"@types/node": "^12.11.1",
"codelyzer": "^5.2.2",
"jasmine-core": "~3.4.0",
"jasmine-spec-reporter": "~4.2.1",
"karma": "~4.1.0",
"karma-chrome-launcher": "~2.2.0",
"karma-coverage-istanbul-reporter": "~2.0.1",
"karma-jasmine": "~2.0.1",
"karma-jasmine-html-reporter": "^1.5.3",
"prettier": "^1.19.1",
"protractor": "^5.4.4",
"ts-node": "~7.0.0",
"tslint": "~5.15.0",
"tslint-angular": "^3.0.2",
"tslint-config-prettier": "^1.18.0",
"tslint-plugin-prettier": "^2.0.1",
"typescript": "~3.8.3",
"yamlinc": "^0.1.10"
}
}
......@@ -320,7 +320,7 @@ export class HaStatusComponent implements OnInit {
*/
localStateOk(): boolean {
return (
this.haStatus() &&
this.hasStatus() &&
(this.localServer().state === 'load-balancing' || this.localServer().state === 'hot-standby')
)
}
......@@ -337,7 +337,7 @@ export class HaStatusComponent implements OnInit {
*/
remoteStateOk(): boolean {
return (
this.haStatus() &&
this.hasStatus() &&
(this.remoteServer().state === 'load-balancing' || this.remoteServer().state === 'hot-standby')
)
}
......
......@@ -14,7 +14,7 @@ import { OverlayPanel } from 'primeng/overlaypanel'
styleUrls: ['./help-tip.component.sass'],
})
export class HelpTipComponent implements OnInit {
@ViewChild(OverlayPanel, undefined)
@ViewChild(OverlayPanel)
overlay: OverlayPanel
/**
......
import { Component, OnInit, ViewChild } from '@angular/core'
import { Component, OnInit, ViewChild, AfterViewInit } from '@angular/core'
import { Router, ActivatedRoute } from '@angular/router'
import { Table } from 'primeng/table'
......@@ -19,8 +19,8 @@ import { extractKeyValsAndPrepareQueryParams } from '../utils'
templateUrl: './hosts-page.component.html',
styleUrls: ['./hosts-page.component.sass'],
})
export class HostsPageComponent implements OnInit {
@ViewChild('hostsTable', undefined) hostsTable: Table
export class HostsPageComponent implements OnInit, AfterViewInit {
@ViewChild('hostsTable') hostsTable: Table
// hosts
hosts: any[]
......@@ -39,7 +39,9 @@ export class HostsPageComponent implements OnInit {
text += ' appId=' + params.appId
}
this.filterText = text.trim()
}
ngAfterViewInit() {
// subscribe to subsequent changes to query params
this.route.queryParamMap.subscribe(data => {
const event = this.hostsTable.createLazyLoadMetadata()
......
import { Component, OnInit, ViewChild } from '@angular/core'
import { Component, OnInit, ViewChild, AfterViewInit } from '@angular/core'
import { Router, ActivatedRoute } from '@angular/router'
import { Table } from 'primeng/table'
......@@ -15,8 +15,8 @@ import { getTotalAddresses, getAssignedAddresses } from '../subnets'
templateUrl: './shared-networks-page.component.html',
styleUrls: ['./shared-networks-page.component.sass'],
})
export class SharedNetworksPageComponent implements OnInit {
@ViewChild('networksTable', undefined) networksTable: Table
export class SharedNetworksPageComponent implements OnInit, AfterViewInit {
@ViewChild('networksTable') networksTable: Table
// networks
networks: any[]
......@@ -49,7 +49,9 @@ export class SharedNetworksPageComponent implements OnInit {
text += ' appId=' + params.appId
}
this.filterText = text.trim()
}
ngAfterViewInit() {
// subscribe to subsequent changes to query params
this.route.queryParamMap.subscribe(data => {
const event = this.networksTable.createLazyLoadMetadata()
......
import { Component, OnInit, ViewChild } from '@angular/core'
import { Component, OnInit, ViewChild, AfterViewInit } from '@angular/core'
import { Router, ActivatedRoute } from '@angular/router'
import { Table } from 'primeng/table'
......@@ -16,8 +16,8 @@ import { SettingService } from '../setting.service'
templateUrl: './subnets-page.component.html',
styleUrls: ['./subnets-page.component.sass'],
})
export class SubnetsPageComponent implements OnInit {
@ViewChild('subnetsTable', undefined) subnetsTable: Table
export class SubnetsPageComponent implements OnInit, AfterViewInit {
@ViewChild('subnetsTable') subnetsTable: Table
// subnets
subnets: any[]
......@@ -61,7 +61,9 @@ export class SubnetsPageComponent implements OnInit {
text += ' appId=' + params.appId
}
this.filterText = text.trim()
}
ngAfterViewInit() {
// subscribe to subsequent changes to query params
this.route.queryParamMap.subscribe(data => {
const event = this.subnetsTable.createLazyLoadMetadata()
......
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