Designer alignment 09/30009/2
authorIdan Amit <ia096e@intl.att.com>
Thu, 1 Feb 2018 12:01:11 +0000 (14:01 +0200)
committerMichael Lando <ml636r@att.com>
Sun, 4 Feb 2018 09:31:31 +0000 (09:31 +0000)
Little fixes from previous code

Change-Id: I4adcd64ae1323963cec248cabb790a4375ae51df
Issue-ID: SDC-972
Signed-off-by: Idan Amit <ia096e@intl.att.com>
catalog-ui/src/app/view-models/workspace/tabs/plugins/plugins-context-view-model.ts
catalog-ui/webpack.server.js

index ca8c269..7a399d8 100644 (file)
@@ -35,7 +35,7 @@ export class PluginsContextViewModel {
             userId: this.$scope.user.userId,
             userRole: this.$scope.user.role,
             displayType: "context",
-            contextType: this.$scope.component.componentType,
+            contextType: this.$scope.component.getComponentSubType(),
             uuid: this.$scope.component.uuid,
             lifecycleState: this.$scope.component.lifecycleState,
             isOwner: this.$scope.component.lastUpdaterUserId === this.$scope.user.userId
index d9baf47..e53d79f 100644 (file)
@@ -39,14 +39,14 @@ module.exports = function(env) {
             // Redirect all '/sdc1/feProxy/rest' to feHost
             middlewares.push(
                 proxy(['/sdc1/feProxy/rest'],{
-                    target: 'http://192.168.50.5:' + fePort,
+                    target: 'http://localhost:' + fePort,
                     changeOrigin: true,
                                    secure: false
                 }));
 
             middlewares.push(
                 proxy(['/sdc1/rest'],{
-                    target: 'http://192.168.50.5:' + fePort,
+                    target: 'http://localhost:' + fePort,
                     changeOrigin: true,
                     secure: false
                 }));
@@ -54,7 +54,7 @@ module.exports = function(env) {
             // Redirect dcae urls to feHost
             middlewares.push(
                 proxy(['/dcae','/sdc1/feProxy/dcae-api'],{
-                    target: 'http://192.168.50.5:' + fePort,
+                    target: 'http://localhost:' + fePort,
                     changeOrigin: true,
                                    secure: false,
                     onProxyRes: (proxyRes, req, res) => {
@@ -68,7 +68,7 @@ module.exports = function(env) {
             // Redirect onboarding urls to feHost
             middlewares.push(
                 proxy(['/onboarding','/sdc1/feProxy/onboarding-api'],{
-                    target: 'http://192.168.50.5:' + fePort,
+                    target: 'http://localhost:' + fePort,
                     changeOrigin: true,
                                    secure: false,
                     onProxyRes: (proxyRes, req, res) => {