diff --git a/src/app/components/docker/dockerhandshake/dockerhandshake.component.html b/src/app/components/docker/dockerhandshake/dockerhandshake.component.html index bf3ad13b..4a96055c 100644 --- a/src/app/components/docker/dockerhandshake/dockerhandshake.component.html +++ b/src/app/components/docker/dockerhandshake/dockerhandshake.component.html @@ -12,7 +12,7 @@ Connection attempt failed: {{ handshake.lastErrorMessage }} - + Run the following command on {{ handshake.hostname }}:
diff --git a/src/app/components/docker/dockerhandshake/dockerhandshake.component.ts b/src/app/components/docker/dockerhandshake/dockerhandshake.component.ts index e1761428..4f3d8802 100644 --- a/src/app/components/docker/dockerhandshake/dockerhandshake.component.ts +++ b/src/app/components/docker/dockerhandshake/dockerhandshake.component.ts @@ -14,7 +14,7 @@ export class DockerhandshakeComponent implements OnInit { @Output() redo = new EventEmitter(); constructor( - private _util: UtilService, + protected _util: UtilService, ) { } ngOnInit(): void { diff --git a/src/app/views/adapters/adapters.component.ts b/src/app/views/adapters/adapters.component.ts index 65a5c956..8bd5673d 100644 --- a/src/app/views/adapters/adapters.component.ts +++ b/src/app/views/adapters/adapters.component.ts @@ -3,11 +3,25 @@ import {CrudService} from '../../services/crud.service'; import {ActivatedRoute, Router} from '@angular/router'; import {AdapterModel, AdapterType, PolyMap} from './adapter.model'; import {ToasterService} from '../../components/toast-exposer/toaster.service'; -import {AbstractControl, FormGroup, UntypedFormArray, UntypedFormBuilder, UntypedFormControl, UntypedFormGroup, ValidatorFn, Validators} from '@angular/forms'; +import { + AbstractControl, + FormGroup, + UntypedFormArray, + UntypedFormBuilder, + UntypedFormControl, + UntypedFormGroup, + ValidatorFn, + Validators +} from '@angular/forms'; import {PathAccessRequest, RelationalResult} from '../../components/data-view/models/result-set.model'; import {Subscription} from 'rxjs'; import {CatalogService} from '../../services/catalog.service'; -import {AdapterSettingModel, AdapterSettingValueModel, AdapterTemplateModel, DeployMode} from '../../models/catalog.model'; +import { + AdapterSettingModel, + AdapterSettingValueModel, + AdapterTemplateModel, + DeployMode +} from '../../models/catalog.model'; import {LeftSidebarService} from '../../components/left-sidebar/left-sidebar.service'; @Component({ @@ -36,6 +50,7 @@ export class AdaptersComponent implements OnInit, OnDestroy { this.stores = computed(() => { this._catalog.listener(); + console.log(this._catalog.getStores()) return this._catalog.getStores(); }); this.sources = computed(() => { @@ -94,7 +109,7 @@ export class AdaptersComponent implements OnInit, OnDestroy { this.subscribeActiveChange(); this.currentRoute.set(this._route.snapshot.paramMap.get('action')); - console.log(this.currentRoute()); + const sub = this._route.params.subscribe(params => { this.currentRoute.set(params['action']); }); @@ -395,7 +410,6 @@ export class AdaptersComponent implements OnInit, OnDestroy { this._toast.exception(result, 'Could not deploy adapter'); } this.modalActive = false; - // this._catalog.updateIfNecessary(); }, error: err => { this._toast.error('Could not deploy adapter'); diff --git a/src/app/views/dockerconfig/dockerconfig.component.html b/src/app/views/dockerconfig/dockerconfig.component.html index 00e1fe52..b1f5c8e0 100644 --- a/src/app/views/dockerconfig/dockerconfig.component.html +++ b/src/app/views/dockerconfig/dockerconfig.component.html @@ -7,8 +7,8 @@

Docker

-
- diff --git a/src/app/views/dockerconfig/dockerconfig.component.ts b/src/app/views/dockerconfig/dockerconfig.component.ts index 7a539b61..82ca22e1 100644 --- a/src/app/views/dockerconfig/dockerconfig.component.ts +++ b/src/app/views/dockerconfig/dockerconfig.component.ts @@ -1,10 +1,9 @@ -import {Component, OnDestroy, OnInit, ViewChild} from '@angular/core'; +import {Component, OnDestroy, OnInit} from '@angular/core'; import {CrudService} from '../../services/crud.service'; import {ToasterService} from '../../components/toast-exposer/toaster.service'; import {LeftSidebarService} from '../../components/left-sidebar/left-sidebar.service'; import {BreadcrumbService} from '../../components/breadcrumb/breadcrumb.service'; import {BreadcrumbItem} from '../../components/breadcrumb/breadcrumb-item'; -import {ModalDirective} from 'ngx-bootstrap/modal'; @Component({ selector: 'app-dockerconfig', @@ -48,16 +47,16 @@ export class DockerconfigComponent implements OnInit, OnDestroy { updateList() { this._crud.getDockerInstances().subscribe({ - next: res => { - this.instances = res; + next: (res: DockerInstance[]) => { + this.instances = res; }, error: err => { console.log(err); }, }); this._crud.getAutoDockerStatus().subscribe({ - next: res => { - this.status = res; + next: (res: AutoDockerStatus) => { + this.status = res; }, error: err => { console.log(err);