Fix upload file boxes in config setup
This commit is contained in:
parent
0876fc754a
commit
04f96ea859
3 changed files with 10 additions and 6 deletions
|
@ -1,7 +1,10 @@
|
||||||
<div class="config-file-field-element">
|
<div class="config-file-field-element">
|
||||||
<span ng-show="uploadProgress == null">
|
<span ng-show="uploadProgress == null">
|
||||||
<span ng-if="hasFile"><code>{{ filename }}</code></span>
|
<span ng-if="hasFile">
|
||||||
<span class="nofile" ng-if="!hasFile && skipCheckFile != 'true'"><code>{{ filename }}</code> not found in mounted config directory: </span>
|
<code>/conf/stack/{{ filename }}</code>
|
||||||
|
<span style="margin-left: 20px; display: inline-block;">Select a replacement file:</span>
|
||||||
|
</span>
|
||||||
|
<span class="nofile" ng-if="!hasFile && skipCheckFile != 'true'">Please select a file to upload as <b>{{ filename }}</b>: </span>
|
||||||
<input type="file" ng-file-select="onFileSelect($files)">
|
<input type="file" ng-file-select="onFileSelect($files)">
|
||||||
</span>
|
</span>
|
||||||
<span ng-show="uploadProgress != null">
|
<span ng-show="uploadProgress != null">
|
||||||
|
|
|
@ -112,7 +112,7 @@
|
||||||
A valid SSL certificate and private key files are required to use this option.
|
A valid SSL certificate and private key files are required to use this option.
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="co-alert co-alert-info" ng-if="config.PREFERRED_URL_SCHEME == 'https'">
|
<div class="co-alert co-alert-info" ng-if="config.PREFERRED_URL_SCHEME == 'https'" style="margin-bottom: 20px">
|
||||||
Enabling SSL also enables <a href="https://en.wikipedia.org/wiki/HTTP_Strict_Transport_Security">HTTP Strict Transport Security</a>.<br/>
|
Enabling SSL also enables <a href="https://en.wikipedia.org/wiki/HTTP_Strict_Transport_Security">HTTP Strict Transport Security</a>.<br/>
|
||||||
This prevents downgrade attacks and cookie theft, but browsers will reject all future insecure connections on this hostname.
|
This prevents downgrade attacks and cookie theft, but browsers will reject all future insecure connections on this hostname.
|
||||||
</div>
|
</div>
|
||||||
|
@ -121,7 +121,7 @@
|
||||||
<tr>
|
<tr>
|
||||||
<td class="non-input">Certificate:</td>
|
<td class="non-input">Certificate:</td>
|
||||||
<td>
|
<td>
|
||||||
<span class="config-file-field" filename="ssl.cert"></span>
|
<span class="config-file-field" filename="ssl.cert" has-file="hasfile.SSLCert"></span>
|
||||||
<div class="help-text">
|
<div class="help-text">
|
||||||
The certificate must be in PEM format.
|
The certificate must be in PEM format.
|
||||||
</div
|
</div
|
||||||
|
@ -130,7 +130,7 @@
|
||||||
<tr>
|
<tr>
|
||||||
<td class="non-input">Private key:</td>
|
<td class="non-input">Private key:</td>
|
||||||
<td>
|
<td>
|
||||||
<span class="config-file-field" filename="ssl.key"></span>
|
<span class="config-file-field" filename="ssl.key" has-file="hasfile.SSLKey"></span>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
@ -487,7 +487,7 @@
|
||||||
<tr>
|
<tr>
|
||||||
<td>Public Key:</td>
|
<td>Public Key:</td>
|
||||||
<td>
|
<td>
|
||||||
<span class="config-file-field" filename="jwt-authn.cert"></span>
|
<span class="config-file-field" filename="jwt-authn.cert" has-file="hasfile.JWTCert"></span>
|
||||||
<div class="help-text">
|
<div class="help-text">
|
||||||
A certificate containing the public key portion of the key pair used to sign
|
A certificate containing the public key portion of the key pair used to sign
|
||||||
the JSON Web Tokens. This file must be in PEM format.
|
the JSON Web Tokens. This file must be in PEM format.
|
||||||
|
|
|
@ -126,6 +126,7 @@ angular.module("core-config-setup", ['angularFileUpload'])
|
||||||
'$hasChanges': false
|
'$hasChanges': false
|
||||||
};
|
};
|
||||||
|
|
||||||
|
$scope.hasfile = {};
|
||||||
$scope.validating = null;
|
$scope.validating = null;
|
||||||
$scope.savingConfiguration = false;
|
$scope.savingConfiguration = false;
|
||||||
|
|
||||||
|
|
Reference in a new issue