mirror of
https://github.com/ansible/awx.git
synced 2024-10-31 23:51:09 +03:00
changing default number of rows for host facts based
on the presence/abscence of facts
This commit is contained in:
parent
2f07c0a2e5
commit
93da7c9626
@ -22,6 +22,7 @@ function(i18n) {
|
||||
formLabelSize: 'col-lg-3',
|
||||
formFieldSize: 'col-lg-9',
|
||||
iterator: 'host',
|
||||
detailsClick: "$state.go('hosts.edit', null, {reload:true})",
|
||||
activeEditState: 'hosts.edit',
|
||||
stateTree: 'hosts',
|
||||
headerFields:{
|
||||
|
@ -22,6 +22,7 @@ function(i18n) {
|
||||
formLabelSize: 'col-lg-3',
|
||||
formFieldSize: 'col-lg-9',
|
||||
iterator: 'host',
|
||||
detailsClick: "$state.go('inventories.edit.hosts.edit', null, {reload:true})",
|
||||
stateTree: 'inventories.edit.hosts',
|
||||
headerFields:{
|
||||
enabled: {
|
||||
|
@ -8,7 +8,8 @@ function AnsibleFacts($scope, Facts, ParseTypeChange, ParseVariableString) {
|
||||
|
||||
function init() {
|
||||
$scope.facts = ParseVariableString(Facts.data);
|
||||
|
||||
let rows = (_.isEmpty(Facts.data)) ? 6 : 20;
|
||||
$("#host_facts").attr("rows", rows);
|
||||
$scope.parseType = 'yaml';
|
||||
ParseTypeChange({
|
||||
scope: $scope,
|
||||
|
@ -4,7 +4,7 @@
|
||||
<span class="Form-inputLabel" translate>FACTS</span>
|
||||
</label>
|
||||
<div>
|
||||
<textarea rows="10" ng-model="facts" name="facts" class="form-control Form-textArea Form-formGroup--fullWidth" id="host_facts"></textarea>
|
||||
<textarea rows="6" ng-model="facts" name="facts" class="form-control Form-textArea Form-formGroup--fullWidth" id="host_facts"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
Loading…
Reference in New Issue
Block a user