diff --git a/src/canvas-view/examples/canvas.js b/src/canvas-view/examples/canvas.js index a336fd584..a934da47b 100644 --- a/src/canvas-view/examples/canvas.js +++ b/src/canvas-view/examples/canvas.js @@ -106,7 +106,8 @@ - angular.module( 'patternfly.canvas.demo' ).controller( 'CanvasDemoCtrl', function( $scope ) { + angular.module( 'patternfly.canvas.demo' ).controller( 'CanvasDemoCtrl', function( $scope, $window ) { + var imagePath = $window.IMAGE_PATH || "img"; $scope.chartDataModel = { "nodes": [ { @@ -114,7 +115,7 @@ "x": 345, "y": 67, "id": 1, - "image": "/img/OpenShift-logo.svg", + "image": imagePath + "/OpenShift-logo.svg", "width": 150, "bundle": true, "backgroundColor": "#fff", @@ -139,7 +140,7 @@ "x": 100, "y": 290, "id": 2, - "image": "/img/kubernetes.svg", + "image": imagePath + "/kubernetes.svg", "width": 150, "backgroundColor": "#fff", "validConnectionTypes": ["storage"], diff --git a/src/canvas-view/examples/canvasEditor.js b/src/canvas-view/examples/canvasEditor.js index 963a73d2f..2485fa31b 100644 --- a/src/canvas-view/examples/canvasEditor.js +++ b/src/canvas-view/examples/canvasEditor.js @@ -74,7 +74,8 @@ - angular.module( 'patternfly.canvaseditor.demo' ).controller( 'CanvasEditorDemoCtrl', function( $scope, $filter ) { + angular.module( 'patternfly.canvaseditor.demo' ).controller( 'CanvasEditorDemoCtrl', function( $scope, $filter, $window ) { + var imagePath = $window.IMAGE_PATH || "img"; $scope.chartDataModel = { "nodes": [ { @@ -82,7 +83,7 @@ "x": 345, "y": 67, "id": 1, - "image": "/img/OpenShift-logo.svg", + "image": imagePath + "/OpenShift-logo.svg", "width": 150, "bundle": true, "backgroundColor": "#fff", @@ -107,7 +108,7 @@ "x": 100, "y": 290, "id": 2, - "image": "/img/kubernetes.svg", + "image": imagePath + "/kubernetes.svg", "width": 150, "backgroundColor": "#fff", "validConnectionTypes": ["storage"], @@ -236,12 +237,12 @@ { "name": "Nuage", "id": 10000000000004, - "image": "/img/OpenShift-logo.svg" + "image": imagePath + "/OpenShift-logo.svg" }, { "name": "Vmware", "id": 10000000000010, - "image": "/img/kubernetes.svg" + "image": imagePath + "/kubernetes.svg" } ] }, diff --git a/src/card/aggregate-status/aggregate-status-card.component.js b/src/card/aggregate-status/aggregate-status-card.component.js index 04886e356..08dffbc13 100644 --- a/src/card/aggregate-status/aggregate-status-card.component.js +++ b/src/card/aggregate-status/aggregate-status-card.component.js @@ -68,7 +68,8 @@ - angular.module( 'patternfly.card' ).controller( 'CardDemoCtrl', function( $scope ) { + angular.module( 'patternfly.card' ).controller( 'CardDemoCtrl', function( $scope, $window ) { + var imagePath = $window.IMAGE_PATH || "img"; $scope.status = { "title":"Nodes", "count":793, @@ -92,12 +93,12 @@ "count":3, "notifications":[ { - "iconImage":"img/kubernetes.svg", + "iconImage": imagePath + "/kubernetes.svg", "count":1, "href":"#" }, { - "iconImage":"img/OpenShift-logo.svg", + "iconImage": imagePath + "/OpenShift-logo.svg", "count":2, "href":"#" } diff --git a/src/card/info-status/info-status-card.component.js b/src/card/info-status/info-status-card.component.js index d8a70a6d4..8179b1de9 100644 --- a/src/card/info-status/info-status-card.component.js +++ b/src/card/info-status/info-status-card.component.js @@ -36,7 +36,8 @@ - angular.module( 'patternfly.card' ).controller( 'CardDemoCtrl', function( $scope ) { + angular.module( 'patternfly.card' ).controller( 'CardDemoCtrl', function( $scope, $window ) { + var imagePath = $window.IMAGE_PATH || "img"; $scope.infoStatus = { "title":"TinyCore-local", "href":"#", @@ -50,7 +51,7 @@ }; $scope.infoStatusTitless = { - "iconImage":"img/OpenShift-logo.svg", + "iconImage": imagePath + "/OpenShift-logo.svg", "info":[ "Infastructure: VMware", "Vmware: 1 CPU (1 socket x 1 core), 1024 MB", diff --git a/src/navigation/application-launcher.component.js b/src/navigation/application-launcher.component.js index 7f823ea84..4503d7122 100644 --- a/src/navigation/application-launcher.component.js +++ b/src/navigation/application-launcher.component.js @@ -27,7 +27,7 @@