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