Skip to content

Commit 1bb69cb

Browse files
committed
change the api call response handing
1 parent 5e4f4e5 commit 1bb69cb

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

app/javascript/oldjs/services/dialog_editor_http_service.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ ManageIQ.angular.app.service('DialogEditorHttp', ['$http', 'API', function($http
4141
/** Function to load a workflow with the provided 'id' */
4242
this.loadWorkflow = (id) => {
4343
const url = `/api/configuration_script_payloads/${id}`;
44-
return API.get(url);
44+
return API.get(url)
45+
.then((response) => ({ data: response, status: true }))
46+
.catch((error) => ({ data: error, status: false }));
4547
};
4648
}]);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"@data-driven-forms/carbon-component-mapper": "~3.18.8",
3939
"@data-driven-forms/react-form-renderer": "~3.18.8",
4040
"@manageiq/font-fabulous": "~1.0.5",
41-
"@manageiq/ui-components": "1.4.4",
41+
"@manageiq/ui-components": "file:/Users/jeffreybonson/Workspace/ui-components",
4242
"@novnc/novnc": "~1.2.0",
4343
"@pf3/select": "~1.12.6",
4444
"@tshepomgaga/aws-sfn-graph": "0.0.6",

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1934,17 +1934,17 @@ __metadata:
19341934
languageName: node
19351935
linkType: hard
19361936

1937-
"@manageiq/ui-components@npm:1.4.4":
1937+
"@manageiq/ui-components@file:/Users/jeffreybonson/Workspace/ui-components::locator=manageiq-ui-classic%40workspace%3A.":
19381938
version: 1.4.4
1939-
resolution: "@manageiq/ui-components@npm:1.4.4"
1939+
resolution: "@manageiq/ui-components@file:/Users/jeffreybonson/Workspace/ui-components#/Users/jeffreybonson/Workspace/ui-components::hash=22e43f&locator=manageiq-ui-classic%40workspace%3A."
19401940
dependencies:
19411941
angular-bootstrap-switch: ^0.5.1
19421942
angular-dragdrop: ^1.0.13
19431943
angular-ui-sortable: ^0.16.1
19441944
es6-shim: ^0.35.3
19451945
es7-shim: ^6.0.0
19461946
sprintf-js: ^1.1.1
1947-
checksum: 4668f41f8c1f1107b2c21b2a3bbafa293a0e730130801120ccfb1ddf925224dfa3cc4d753a8bdf4af41c274d21b3c1f1d7e56ecfc9440bcc6e5e02174db58358
1947+
checksum: 3dcb8e2842719f008f83917460d96415dfdb4a4024d1e6c12f754b5126d5ddbb1926ea6516bb9972f8802bc0ef9e422bf6a8e40716a7ee4ad3bf3a6e5a97eb3b
19481948
languageName: node
19491949
linkType: hard
19501950

@@ -11382,7 +11382,7 @@ fsevents@^1.2.7:
1138211382
"@data-driven-forms/carbon-component-mapper": ~3.18.8
1138311383
"@data-driven-forms/react-form-renderer": ~3.18.8
1138411384
"@manageiq/font-fabulous": ~1.0.5
11385-
"@manageiq/ui-components": 1.4.4
11385+
"@manageiq/ui-components": "file:/Users/jeffreybonson/Workspace/ui-components"
1138611386
"@novnc/novnc": ~1.2.0
1138711387
"@pf3/select": ~1.12.6
1138811388
"@tshepomgaga/aws-sfn-graph": 0.0.6

0 commit comments

Comments
 (0)