feat: add base class for settings add screen

This commit is contained in:
2026-02-16 21:46:25 -03:00
parent 4e53684649
commit 13b19d5776
3 changed files with 25 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
<h3>{{title|translate|upperfirst}}</h3>
<ng-content></ng-content>
<app-action-btn
(click)="save()"
[disabled]="this.form.invalid"
class="top-auto"
text="{{'common.save'|translate|upperfirst}}"
/>

View File

@@ -0,0 +1,9 @@
:host {
display: flex;
flex-direction: column;
height: 100%;
}
h3 {
margin-top: 0;
}

View File

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