Skip to content

Commit fe011e6

Browse files
committed
Fixup button css and add icon
1 parent b541d79 commit fe011e6

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

swagger/swagger.html

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
<ul id="node-config-parameter-list" style="padding: 0; margin:0;"></ul>
5757
</div>
5858
<div class="form-row">
59-
<a href="#" class="btn btn-mini" id="node-config-input-add-parameter"><i class="fa fa-plus"></i> <span data-i18n="swagger.label.parameter"></span></a>
59+
<a href="#" class="red-ui-button red-ui-button-small" id="node-config-input-add-parameter"><i class="fa fa-plus"></i> <span data-i18n="swagger.label.parameter"></span></a>
6060
<a href="#" id="node-config-input-parameter-info" class="popover-closable" style="font-size: 10px; text-decoration: underline; float: right"><span data-i18n="swagger.label.parameters-help"></span></a>
6161
</div>
6262
</div>
@@ -65,7 +65,7 @@
6565
<ul id="node-config-response-list" style="padding: 0; margin:0;"></ul>
6666
</div>
6767
<div class="form-row">
68-
<a href="#" class="btn btn-mini" id="node-config-input-add-response"><i class="fa fa-plus"></i> <span data-i18n="swagger.label.response"></span></a>
68+
<a href="#" class="red-ui-button red-ui-button-small" id="node-config-input-add-response"><i class="fa fa-plus"></i> <span data-i18n="swagger.label.response"></span></a>
6969
<a href="#" id="node-config-input-response-info" class="popover-closable" style="font-size: 10px; text-decoration: underline; float: right"><span data-i18n="swagger.label.responses-help"></span></a>
7070
</div>
7171
</div>
@@ -135,7 +135,8 @@
135135
id: "swagger-ui",
136136
label: this._("swagger.sidebar.label"),
137137
name: this._("swagger.sidebar.name"),
138-
content: content
138+
content: content,
139+
iconClass: "fa fa-file-text-o"
139140
});
140141

141142
swaggerFrame.load(function(){
@@ -152,10 +153,10 @@
152153
RED.popover.tooltip($('#node-config-input-consumes-label'), this._("swagger.data-content.consumes"));
153154
RED.popover.tooltip($('#node-config-input-produces-label'), this._("swagger.data-content.produces"));
154155
RED.popover.tooltip($('#node-config-input-deprecated-label'), this._("swagger.data-content.deprecated"));
155-
156+
156157
RED.popover.tooltip($('#node-config-input-parameter-info'), this._("swagger.content.parameter-info"));
157158
RED.popover.tooltip($('#node-config-input-response-info'), this._("swagger.content.response-info"))
158-
159+
159160
var node = this;
160161

161162
if ($("#node-input-method").length) {
@@ -328,7 +329,7 @@
328329
}).val(opts.name).appendTo(row);
329330
var remove = $('<a/>', {
330331
href: "#",
331-
class: "btn btn-mini",
332+
class: "red-ui-button red-ui-button-small",
332333
style: "float: right; margin-right: 5px; margin-top: 3px;"
333334
}).appendTo(row);
334335
var removeIcon = $('<i/>', {
@@ -367,7 +368,7 @@
367368
}).appendTo(li);
368369
var remove = $('<a/>', {
369370
href: "#",
370-
class: "btn btn-mini",
371+
class: "red-ui-button red-ui-button-small",
371372
style: "float: right; margin-right: 5px; margin-top: 3px;"
372373
}).appendTo(row1);
373374
var removeIcon = $('<i/>', {
@@ -486,7 +487,7 @@
486487
}).appendTo(nameRows);
487488
var descLabel = $("<label/>").text(descriptionText).appendTo(row2);
488489
RED.popover.tooltip(descLabel, parameterDescriptionContent);
489-
490+
490491
$('<input/>', {
491492
type: "text",
492493
class: "node-swagger-description",
@@ -522,7 +523,7 @@
522523
class: "node-swagger-propHeader-label",
523524
style: "width: auto; font-weight: bold; margin-right: 10px"
524525
}).text(propertiesText).appendTo(rowPropHeader);
525-
var addPropButton = $('<a href=#" class="btn btn-mini" id="node-config-input-add-property"><i class="fa fa-plus"></i> '+propertyText+'</a>').appendTo(rowPropHeader);
526+
var addPropButton = $('<a href=#" class="red-ui-button red-ui-button-small" id="node-config-input-add-property"><i class="fa fa-plus"></i> '+propertyText+'</a>').appendTo(rowPropHeader);
526527

527528
var rowPropList = $("<div/>", {
528529
class: "form-row node-swagger-prop-list",
@@ -598,7 +599,7 @@
598599
}).appendTo(li);
599600
var remove = $('<a/>', {
600601
href: "#",
601-
class: "btn btn-mini",
602+
class: "red-ui-button red-ui-button-small",
602603
style: "float: right; margin-right: 5px; margin-top: 3px;"
603604
}).appendTo(row1);
604605
var removeIcon = $('<i/>', {
@@ -687,7 +688,7 @@
687688
}).appendTo(nameRows);
688689
var descLabel = $("<label/>").text(descriptionText).appendTo(row2);
689690
RED.popover.tooltip(descLabel, responseDescriptionContent);
690-
691+
691692
$('<input/>', {
692693
type: "text",
693694
class: "node-swagger-description"
@@ -700,7 +701,7 @@
700701
class: "node-swagger-propHeader-label",
701702
style: "width: auto; font-weight: bold; margin-right: 10px"
702703
}).text(propertiesText).appendTo(rowPropHeader);
703-
var addPropButton = $('<a href=#" class="btn btn-mini" id="node-config-input-add-property"><i class="fa fa-plus"></i> '+propertyText+'</a>').appendTo(rowPropHeader);
704+
var addPropButton = $('<a href=#" class="red-ui-button red-ui-button-small" id="node-config-input-add-property"><i class="fa fa-plus"></i> '+propertyText+'</a>').appendTo(rowPropHeader);
704705

705706
var rowPropList = $("<div/>", {
706707
class: "form-row node-swagger-prop-list",

0 commit comments

Comments
 (0)