Commit c5727e82 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_jio: Fix the request to destroy and include warning message.

parent cb0a473a
......@@ -14,6 +14,12 @@
</head>
<body>
<p> <strong> Attention! Be Carefull! </strong></p>
<br />
<p> Once you proceed to <strong> destroy </strong> this instance, all the services are stopped and all the data is removed from the disk. </p>
<br />
<p> There is no way to cancel this action once you decide to remove. </p>
<form class="save_form ui-body-c" novalidate>
<button type="submit" class="ui-btn ui-btn-b ui-btn-inline
ui-icon-edit ui-btn-icon-right ui-screen-hidden"></button>
......
......@@ -277,7 +277,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>962.65075.33399.2372</string> </value>
<value> <string>965.23615.23870.11912</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -295,7 +295,7 @@
</tuple>
<state>
<tuple>
<float>1508880904.49</float>
<float>1518101743.13</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -36,7 +36,7 @@
return gadget.getSetting("hateoas_url")
.push(function (url) {
return gadget.jio_putAttachment(doc.relative_url,
url + doc.relative_url + "/HostingSubscription_requestPerson", {});
url + doc.relative_url + "/HostingSubscription_requestPerson", {state: "destroyed"});
});
})
.push(function () {
......
......@@ -273,7 +273,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>963.7994.48734.25941</string> </value>
<value> <string>965.23589.23594.39577</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -291,7 +291,7 @@
</tuple>
<state>
<tuple>
<float>1509386577.65</float>
<float>1518100182.5</float>
<string>UTC</string>
</tuple>
</state>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment