diff options
author | 2018-05-14 17:19:51 -0400 | |
---|---|---|
committer | 2018-05-25 13:39:38 -0400 | |
commit | 2845910b34682056c1949f82e39d9205a26554e9 (patch) | |
tree | 825474a899dc5783e6ea8c4aefd26b6d4c881dfd /ecomp-portal-FE-common/client/app/services/widgets-catalog/widgets-catalog.service.js | |
parent | 485296388748c1efb5737cf7ae9d4a8254681552 (diff) |
Bulk upload changes and music health check apis
Issue-ID: PORTAL-290, PORTAL-291
Bulk upload changes and music health check apis
Change-Id: I63d289d75420658ff4a14385a5106838fa8c32b2
Signed-off-by: Kishore Reddy, Gujja (kg811t) <kg811t@research.att.com>
Diffstat (limited to 'ecomp-portal-FE-common/client/app/services/widgets-catalog/widgets-catalog.service.js')
-rw-r--r-- | ecomp-portal-FE-common/client/app/services/widgets-catalog/widgets-catalog.service.js | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/ecomp-portal-FE-common/client/app/services/widgets-catalog/widgets-catalog.service.js b/ecomp-portal-FE-common/client/app/services/widgets-catalog/widgets-catalog.service.js index f7e5a476..0a3946bd 100644 --- a/ecomp-portal-FE-common/client/app/services/widgets-catalog/widgets-catalog.service.js +++ b/ecomp-portal-FE-common/client/app/services/widgets-catalog/widgets-catalog.service.js @@ -96,6 +96,29 @@ }); return deferred.promise; } + getUploadFlag() { + let deferred = this.$q.defer(); + let url = this.conf.api.widgetCommon + '/uploadFlag'; + this.$http({ + method: "GET", + url: url, + cache: false, + headers: { + 'X-Widgets-Type': 'all', + 'X-ECOMP-RequestID':this.uuid.generate() + } + }).then(res => { + if (res == null || res.data == null) { + deferred.reject("WidgetsCatalogService::getUploadFlag Failed"); + } else { + deferred.resolve(res.data); + } + }) + .catch(status => { + deferred.reject(status); + }); + return deferred.promise; + } createWidget(newWidget, file) { console.log(newWidget); |