Add error handling for upstream URI in app configure

This commit is contained in:
Johannes Zellner
2022-09-29 19:27:22 +02:00
parent 2dafa771f2
commit f9b7183a5e
2 changed files with 17 additions and 7 deletions

View File

@@ -1236,10 +1236,11 @@
<div class="card" ng-show="view === 'proxy'">
<div class="row">
<div class="col-md-12">
<form role="form" name="ProxyForm" ng-submit="proxy.submit()" autocomplete="off">
<div class="form-group">
<form role="form" name="proxyForm" ng-submit="proxy.submit()" autocomplete="off">
<div class="form-group" ng-class="{ 'has-error': !proxyForm.upstreamUri.$dirty && proxy.error }">
<label class="control-label" style="width: 100%">Upstream URI</label>
<input type="text" ng-model="proxy.upstreamUri" placeholder="" class="form-control"/>
<input type="text" ng-model="proxy.upstreamUri" name="upstreamUri" placeholder="" class="form-control"/>
<p class="text-danger" ng-show="!proxyForm.upstreamUri.$dirty && proxy.error">{{ proxy.error }}</p>
</div>
<input class="ng-hide" type="submit" ng-disabled="proxyForm.$invalid || proxy.busy"/>