Fixed up ip address not showing default value when empty
This commit is contained in:
parent
d1dce9d9f3
commit
bbd5ee551b
3 changed files with 3 additions and 2 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"TokenKey": "super secret unguessable key that is longer because we require it",
|
"TokenKey": "super secret unguessable key that is longer because we require it",
|
||||||
"Port": 5000,
|
"Port": 5000,
|
||||||
"IpAddresses": "0.0.0.0,::",
|
"IpAddresses": "",
|
||||||
"BaseUrl": "/",
|
"BaseUrl": "/",
|
||||||
"Cache": 75,
|
"Cache": 75,
|
||||||
"AllowIFraming": false
|
"AllowIFraming": false
|
||||||
|
|
|
||||||
|
|
@ -64,7 +64,7 @@
|
||||||
@if (settingsForm.get('ipAddresses'); as formControl) {
|
@if (settingsForm.get('ipAddresses'); as formControl) {
|
||||||
<app-setting-item [title]="t('ip-address-label')" [subtitle]="t('ip-address-tooltip')">
|
<app-setting-item [title]="t('ip-address-label')" [subtitle]="t('ip-address-tooltip')">
|
||||||
<ng-template #view>
|
<ng-template #view>
|
||||||
{{formControl.value}}
|
{{formControl.value | defaultValue}}
|
||||||
</ng-template>
|
</ng-template>
|
||||||
<ng-template #edit>
|
<ng-template #edit>
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
|
|
|
||||||
|
|
@ -77,6 +77,7 @@ export class ManageSettingsComponent implements OnInit {
|
||||||
this.settingsForm.addControl('onDeckProgressDays', new FormControl(this.serverSettings.onDeckProgressDays, [Validators.required]));
|
this.settingsForm.addControl('onDeckProgressDays', new FormControl(this.serverSettings.onDeckProgressDays, [Validators.required]));
|
||||||
this.settingsForm.addControl('onDeckUpdateDays', new FormControl(this.serverSettings.onDeckUpdateDays, [Validators.required]));
|
this.settingsForm.addControl('onDeckUpdateDays', new FormControl(this.serverSettings.onDeckUpdateDays, [Validators.required]));
|
||||||
|
|
||||||
|
|
||||||
// Automatically save settings as we edit them
|
// Automatically save settings as we edit them
|
||||||
this.settingsForm.valueChanges.pipe(
|
this.settingsForm.valueChanges.pipe(
|
||||||
distinctUntilChanged(),
|
distinctUntilChanged(),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue