1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-31 15:21:13 +03:00

adding ng-if to tabs in order to hide insights tab on host-add-form

This commit is contained in:
Jared Tabor 2017-08-28 13:52:39 -07:00
parent ba8326285e
commit e2d943fd1a

View File

@ -1550,6 +1550,7 @@ angular.module('FormGenerator', [GeneratorHelpers.name, 'Utilities', listGenerat
for (itm in this.form.related) {
collection = this.form.related[itm];
html += "<div id=\"" + itm + "_tab\" ";
html += (this.form.related[itm].ngIf) ? ` ng-if="${this.form.related[itm].ngIf}" ` : "";
html += collection.awToolTip ? "aw-tool-tip=\"" + collection.awToolTip + "\" aw-tip-placement=\"" + collection.dataPlacement + "\" " : "";
html += "data-container=\"body\" tooltipinnerclass=\"StartStatus-tooltip\" data-trigger=\"hover\"" +
"class=\"Form-tab Form-tab--disabled\">" + (collection.title || collection.editTitle) +