Fixed up ip address not showing default value when empty

This commit is contained in:
Joseph Milazzo 2025-04-18 16:05:35 -05:00
parent d1dce9d9f3
commit bbd5ee551b
3 changed files with 3 additions and 2 deletions

View file

@ -1,7 +1,7 @@
{
"TokenKey": "super secret unguessable key that is longer because we require it",
"Port": 5000,
"IpAddresses": "0.0.0.0,::",
"IpAddresses": "",
"BaseUrl": "/",
"Cache": 75,
"AllowIFraming": false

View file

@ -64,7 +64,7 @@
@if (settingsForm.get('ipAddresses'); as formControl) {
<app-setting-item [title]="t('ip-address-label')" [subtitle]="t('ip-address-tooltip')">
<ng-template #view>
{{formControl.value}}
{{formControl.value | defaultValue}}
</ng-template>
<ng-template #edit>
<div class="input-group">

View file

@ -77,6 +77,7 @@ export class ManageSettingsComponent implements OnInit {
this.settingsForm.addControl('onDeckProgressDays', new FormControl(this.serverSettings.onDeckProgressDays, [Validators.required]));
this.settingsForm.addControl('onDeckUpdateDays', new FormControl(this.serverSettings.onDeckUpdateDays, [Validators.required]));
// Automatically save settings as we edit them
this.settingsForm.valueChanges.pipe(
distinctUntilChanged(),