refactor: base members to be abstract as default values are senseless
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user