mirror of https://github.com/rancher/api-ui.git
Fix delete, style request dialog
This commit is contained in:
parent
f93b7b1598
commit
eef564975f
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "gdapi-ui",
|
||||
"version": "2.0.3",
|
||||
"version": "2.0.4",
|
||||
"description": "HTML UI for GDAPI-compliant APIs",
|
||||
"author": {
|
||||
"name": "Vincent Fiduccia",
|
||||
|
|
|
|||
|
|
@ -157,7 +157,7 @@ LI {
|
|||
}
|
||||
|
||||
.errormessage {
|
||||
font-family: "Monaco", "Andale Mono", "Courier New", "Courier", monospace;
|
||||
font-family: "Monaco", "Andale Mono", "Courier New", "Courier", monospace;
|
||||
}
|
||||
|
||||
.json {
|
||||
|
|
@ -270,13 +270,14 @@ text-align: left;
|
|||
#curl,
|
||||
#request,
|
||||
#response {
|
||||
border: 1px solid #555;
|
||||
background-color: #eee;
|
||||
padding: 3px;
|
||||
margin-bottom: 5px;
|
||||
font-family: "Monaco", "Andale Mono", "Courier New", "Courier", monospace;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
#response {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.response-header-name {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
<button type="button" class="btn btn-primary btn-sm" onclick="htmlapi.update()"><span class="glyphicon glyphicon-edit"></span> Edit</button>
|
||||
{{/if}}
|
||||
{{#if operations.delete}}
|
||||
<button type="button" class="btn btn-primary btn-sm" onclick="htmlapi.delete()"><span class="glyphicon glyphicon-trash"></span> Delete</button>
|
||||
<button type="button" class="btn btn-primary btn-sm" onclick="htmlapi.remove()"><span class="glyphicon glyphicon-trash"></span> Delete</button>
|
||||
{{/if}}
|
||||
</div>
|
||||
<br/>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<b>cURL command line:</b>
|
||||
<br/>
|
||||
<div id="curl">
|
||||
<div id="curl" class="well">
|
||||
curl
|
||||
{{#if curl_user}}-u <i>"{{curl_user}}"</i> \<br/>{{/if}}
|
||||
-X {{method}} \<br/>
|
||||
|
|
@ -25,7 +25,7 @@
|
|||
</div>
|
||||
|
||||
<b>HTTP Request:</b><br/>
|
||||
<div id="request">
|
||||
<div id="request" class="well">
|
||||
HTTP/1.1 {{method}} {{path}}<br/>
|
||||
Host: {{host}}<br/>
|
||||
Accept: application/json<br/>
|
||||
|
|
@ -64,7 +64,7 @@
|
|||
</div>
|
||||
|
||||
<b>HTTP Response:</b><br/>
|
||||
<div id="response">
|
||||
<div id="response" class="well">
|
||||
<div id="notsent" class="inactive" style="padding: 20px; text-align: center;">Click below to send request.</div>
|
||||
<div id="waiting" class="inactive" style="padding: 20px; text-align: center; display: none;">Waiting for response...</div>
|
||||
<div id="result" style="display: none;"></div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue