Skip to content

Commit f74faf7

Browse files
committed
Merge pull request #97 from mulesoft/bugs/fix-sidebar-body-request
Bug Fixing
2 parents 7c533f4 + 2f4126d commit f74faf7

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

dist/scripts/api-console.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -944,7 +944,7 @@
944944
var editorHeight = 50;
945945

946946
if (jqXhr.responseText) {
947-
var lines = jqXhr.responseText.split('\n').length;
947+
var lines = $scope.response.body.split('\n').length;
948948
editorHeight = lines > 100 ? 2000 : 25*lines;
949949
}
950950

@@ -5502,7 +5502,7 @@ angular.module('ramlConsoleApp').run(['$templateCache', function($templateCache)
55025502
"\n" +
55035503
" <p class=\"raml-console-sidebar-input-container\" ng-if=\"ownerOptionsEnabled()\">\n" +
55045504
" <label for=\"username\" class=\"raml-console-sidebar-label\">Username <span class=\"raml-console-side-bar-required-field\">*</span></label>\n" +
5505-
" <input required=\"true\" type=\"text\" name=\"username\" class=\"raml-console-sidebar-input sidebar-security-field\" ng-model=\"credentials.username\" ng-change=\"onChange()\"/>\n" +
5505+
" <input required=\"true\" type=\"text\" name=\"username\" class=\"raml-console-sidebar-input raml-console-sidebar-security-field\" ng-model=\"credentials.username\" ng-change=\"onChange()\"/>\n" +
55065506
" <span class=\"raml-console-field-validation-error\"></span>\n" +
55075507
" </p>\n" +
55085508
"\n" +

src/app/directives/sidebar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
var editorHeight = 50;
8585

8686
if (jqXhr.responseText) {
87-
var lines = jqXhr.responseText.split('\n').length;
87+
var lines = $scope.response.body.split('\n').length;
8888
editorHeight = lines > 100 ? 2000 : 25*lines;
8989
}
9090

src/app/security/oauth2.tpl.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
<p class="raml-console-sidebar-input-container" ng-if="ownerOptionsEnabled()">
2222
<label for="username" class="raml-console-sidebar-label">Username <span class="raml-console-side-bar-required-field">*</span></label>
23-
<input required="true" type="text" name="username" class="raml-console-sidebar-input sidebar-security-field" ng-model="credentials.username" ng-change="onChange()"/>
23+
<input required="true" type="text" name="username" class="raml-console-sidebar-input raml-console-sidebar-security-field" ng-model="credentials.username" ng-change="onChange()"/>
2424
<span class="raml-console-field-validation-error"></span>
2525
</p>
2626

0 commit comments

Comments
 (0)