summaryrefslogtreecommitdiffstats
path: root/usecaseui-portal/src/app/core/services
diff options
context:
space:
mode:
Diffstat (limited to 'usecaseui-portal/src/app/core/services')
-rw-r--r--usecaseui-portal/src/app/core/services/homes.service.ts22
1 files changed, 2 insertions, 20 deletions
diff --git a/usecaseui-portal/src/app/core/services/homes.service.ts b/usecaseui-portal/src/app/core/services/homes.service.ts
index 8d3f4684..218756d4 100644
--- a/usecaseui-portal/src/app/core/services/homes.service.ts
+++ b/usecaseui-portal/src/app/core/services/homes.service.ts
@@ -16,7 +16,7 @@
import { Injectable } from '@angular/core';
import { HttpClient, HttpHeaders, HttpParams, HttpResponse } from '@angular/common/http';
import { Observable } from 'rxjs/Observable';
-import { homeData, homeVmLineData, servicesSelectData, servicesTableData, creatensData, onboardTableData, onboardDataVNF, onboardDataPNF, baseUrl } from '../models/dataInterface';
+import { baseUrl } from '../models/dataInterface';
@Injectable()
export class HomesService {
@@ -36,25 +36,7 @@ export class HomesService {
sourceNames: this.baseUrl + "/alarm/getSourceNames",
listSortMasters: this.baseUrl + "/listSortMasters",
currentLanguage: "/api/portal-auxapi/languageSetting/user/",
- }
-
- // Time formatting milliseconds to normal
- dateformater(vmstime) {
- if (!vmstime) {
- return ''
- }
- let mstime = Number((vmstime + '').slice(0, 13));
- let time = new Date(mstime);
- let year = time.getFullYear();
- let month = time.getMonth() + 1;
- let day = time.getDate();
- let hours = time.getHours();
- let minutes = time.getMinutes();
- let seconds = time.getSeconds();
- let formattime = year + '-' + month + '-' + day + ' ' + hours + ':' + minutes + ':' + seconds;
- return formattime;
- }
-
+ };
// home
getHomeServiceData() {