Skip to content

Commit 1cb8a0a

Browse files
authored
Merge pull request rackn#356 from rackn/enum-display
Make the UX show the enum for attributes if they have one.
2 parents 594e586 + cbe5c78 commit 1cb8a0a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

views/dialogs/editattribdialog.tmpl.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ <h2>Editing {{locals.attrib.name}}</h2>
1818
<div style="width: 800px auto; margin-left: 1em; display: inline-block; overflow-x: auto;">
1919
<span style="font-size: 1em;">&quot;*&quot; = Required, &quot;=&quot; = Wildcard</span>
2020
<pre>{{locals.api.exampleFromSchema(locals.attrib.schema) | json}}</pre>
21+
<br>
22+
<div ng-show="locals.attrib.schema.enum">
23+
Enum:
24+
<pre>{{locals.attrib.schema.enum | json}}</pre>
25+
</div>
2126
</div>
2227
</md-dialog-content>
2328
<md-dialog-actions>

0 commit comments

Comments
 (0)