summaryrefslogtreecommitdiffstats
path: root/public/src/app/home
diff options
context:
space:
mode:
authork.kedron <k.kedron@partner.samsung.com>2019-07-26 10:56:11 +0200
committerOfir Sonsino <ofir.sonsino@intl.att.com>2019-08-13 14:09:38 +0000
commit0f0f94fa45483b6fbbab61535297289d2e752e71 (patch)
treecd55019083e492720ebe01805727a2c5cd25f64d /public/src/app/home
parent9362739916b3dac1aba957317866b67a35757443 (diff)
Small tslint fixes in the general, home and store component.
Issue-ID: SDC-2312 Signed-off-by: Krystian Kedron <k.kedron@partner.samsung.com> Change-Id: I69bdc0a3b2fa6f5a425447e5012b4d2442805379
Diffstat (limited to 'public/src/app/home')
-rw-r--r--public/src/app/home/home.component.ts17
1 files changed, 7 insertions, 10 deletions
diff --git a/public/src/app/home/home.component.ts b/public/src/app/home/home.component.ts
index 3b863b0..7052710 100644
--- a/public/src/app/home/home.component.ts
+++ b/public/src/app/home/home.component.ts
@@ -1,4 +1,4 @@
-import { ChangeDetectorRef, Component, ViewEncapsulation } from '@angular/core';
+import { Component, ViewEncapsulation } from '@angular/core';
import { MatDialog } from '@angular/material';
import { ActivatedRoute, Router } from '@angular/router';
import { ToastrService } from 'ngx-toastr';
@@ -8,7 +8,7 @@ import { ConfirmPopupComponent } from '../rule-engine/confirm-popup/confirm-popu
// import { PluginPubSub } from '../sdc/plugin-pubsub';
import { PluginPubSub } from 'sdc-pubsub';
import { Store } from '../store/store';
-import { NgxDatatableModule } from '@swimlane/ngx-datatable';
+// import { NgxDatatableModule } from '@swimlane/ngx-datatable';
import { environment } from '../../environments/environment';
import { RuleEngineApiService } from '../rule-engine/api/rule-engine-api.service';
@@ -37,8 +37,7 @@ export class HomeComponent {
private _ruleApi: RuleEngineApiService,
private dialog: MatDialog,
public store: Store,
- private toastr: ToastrService,
- private changeDetectorRef: ChangeDetectorRef
+ private toastr: ToastrService
) {
this.store.loader = true;
this.store.viewOnly = false;
@@ -49,7 +48,7 @@ export class HomeComponent {
console.log('params: %o', params);
this.store.sdcParmas = params;
- console.log('init comunication with sdc');
+ console.log('init communication with sdc');
const eventsToWaitFor = [
'WINDOW_OUT',
'VERSION_CHANGE',
@@ -89,9 +88,7 @@ export class HomeComponent {
}
});
- this.linkToMain = `/main/${params.contextType}/${params.uuid}/${
- params.version
- }/`;
+ this.linkToMain = `/main/${params.contextType}/${params.uuid}/${params.version}/`;
this.loadingIndicator = true;
this._restApi.getMonitoringComponents(params).subscribe(
@@ -200,7 +197,7 @@ export class HomeComponent {
submittedUuid
)
.subscribe(
- response => {
+ () => {
this.itemDeletedRemoveAndNotify(item.uuid, this.deleteRow);
this.store.loader = false;
},
@@ -226,7 +223,7 @@ export class HomeComponent {
item.vfiName
)
.subscribe(
- response => {
+ () => {
this.itemDeletedRemoveAndNotify(item.uuid, this.deleteRow);
this.store.loader = false;
},