ocket8888 commented on a change in pull request #5329:
URL: https://github.com/apache/trafficcontrol/pull/5329#discussion_r530583276
##########
File path:
traffic_portal/app/src/common/modules/dialog/input/dialog.input.tpl.html
##########
@@ -24,7 +24,7 @@ <h4 class="modal-title">{{::params.title}}</h4>
<div class="modal-body">
<p ng-bind-html="params.message"></p>
<form name="inputForm" novalidate>
- <input type="text" class="form-control" ng-model="inputValue"
ng-maxlength="256">
+ <input type="{{params.type ? params.type : 'text'}}"
class="form-control" ng-model="inputValue" ng-maxlength="256">
Review comment:
I was going to suggest you use an `*ngIf`-`else` to insert different
inputs depending on the type, but it turns out that only works in Angular, not
AngularJS. In AngularJS you'd just need to do two `ng-if`s which is kind of a
cludgy solution. So never mind, I guess.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]