From: lombardof Date: Fri, 25 May 2018 14:15:12 +0000 (+0200) Subject: fix feedback action for a NS instance X-Git-Tag: v4.0.1~4 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F20%2F6220%2F1;p=osm%2FLW-UI.git fix feedback action for a NS instance Change-Id: Icb27e99605db5745205fa5dfc122eaf01834eaa3 Signed-off-by: lombardof --- diff --git a/instancehandler/views.py b/instancehandler/views.py index e193825..9ace8ee 100644 --- a/instancehandler/views.py +++ b/instancehandler/views.py @@ -95,7 +95,7 @@ def action(request, project_id=None, instance_id=None, type=None): } result = client.ns_action(instance_id, action_payload) - return __response_handler(request, result, None, to_redirect=False, status=result['status'] ) + return __response_handler(request, result, None, to_redirect=False, status=result['status'] if 'status' in result else None ) @login_required diff --git a/static/src/instancehandler/instance_list.js b/static/src/instancehandler/instance_list.js index 161cc51..a590fa3 100644 --- a/static/src/instancehandler/instance_list.js +++ b/static/src/instancehandler/instance_list.js @@ -124,6 +124,10 @@ $(document).ready(function () { processData: false }).done(function (response,textStatus, jqXHR) { $('#modal_instance_new_action').modal('hide'); + bootbox.alert({ + title: "Action", + message: "Action received." + }); }).fail(function(result){ var data = result.responseJSON; var title = "Error " + (data.code ? data.code: 'unknown');