Add ng-if to fix Angular scope+form bug in superuser tool
This commit is contained in:
parent
e5ec33511f
commit
6e3968896b
1 changed files with 16 additions and 11 deletions
|
@ -192,17 +192,12 @@
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<table class="config-table">
|
<table class="config-table">
|
||||||
<tr>
|
<!-- This `ng-if` true is *required* to create a new scope so that the <form> inside
|
||||||
<td>Default expiration period:</td>
|
the config-list-field doesn't try to submit the *outer* form when the Add button
|
||||||
<td>
|
is clicked. This is highly stupid, but until we figure out a better way, such it
|
||||||
<span class="config-string-field" binding="config.MINIMUM_TAG_EXPIRATION"
|
shall be.
|
||||||
pattern="[0-9]+(m|w|h|d|s)"></span>
|
-->
|
||||||
<div class="help-text">
|
<tr ng-if="true">
|
||||||
The default tag expiration period for all namespaces (users and organizations). Must be expressed in a duration string form: <code>30m</code>, <code>1h</code>, <code>1d</code>, <code>2w</code>.
|
|
||||||
</div>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>Allowed expiration periods:</td>
|
<td>Allowed expiration periods:</td>
|
||||||
<td>
|
<td>
|
||||||
<span class="config-list-field" item-title="Tag Expiration Period" binding="config.TAG_EXPIRATION_OPTIONS" item-pattern="[0-9]+(m|w|h|d|s)"></span>
|
<span class="config-list-field" item-title="Tag Expiration Period" binding="config.TAG_EXPIRATION_OPTIONS" item-pattern="[0-9]+(m|w|h|d|s)"></span>
|
||||||
|
@ -211,6 +206,16 @@
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Default expiration period:</td>
|
||||||
|
<td>
|
||||||
|
<span class="config-string-field" binding="config.DEFAULT_TAG_EXPIRATION"
|
||||||
|
pattern="[0-9]+(m|w|h|d|s)"></span>
|
||||||
|
<div class="help-text">
|
||||||
|
The default tag expiration period for all namespaces (users and organizations). Must be expressed in a duration string form: <code>30m</code>, <code>1h</code>, <code>1d</code>, <code>2w</code>.
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Allow users to select expiration:</td>
|
<td>Allow users to select expiration:</td>
|
||||||
<td>
|
<td>
|
||||||
|
|
Reference in a new issue