refactor: base members to be abstract as default values are senseless

This commit is contained in:
2026-02-16 22:38:48 -03:00
parent f140ef403b
commit 736a658323
2 changed files with 4 additions and 4 deletions

View File

@@ -19,8 +19,8 @@ import { SettingsBaseAdd } from '../settings-base-add/settings-base-add';
})
export class ChainAdd extends SettingsBaseAdd {
private readonly chainSettings = inject(ChainSettings);
override readonly form = new ChainFormGroup();
override title = 'settings.chain.new_chain';
readonly form = new ChainFormGroup();
title = 'settings.chain.new_chain';
async save() {
const name = this.form.controls.name.value;

View File

@@ -1,8 +1,8 @@
import { FormGroup } from '@angular/forms';
export abstract class SettingsBaseAdd {
title = '';
form = new FormGroup({})
abstract title: string;
abstract form: FormGroup;
protected abstract save(): Promise<void>
}