verifizierung
This commit is contained in:
@@ -2,11 +2,11 @@
|
||||
<mat-icon aria-hidden="true">delete_forever</mat-icon>
|
||||
</div>
|
||||
|
||||
<h2 mat-dialog-title>Template loeschen?</h2>
|
||||
<h2 mat-dialog-title>Template löschen?</h2>
|
||||
|
||||
<mat-dialog-content>
|
||||
<p>
|
||||
<strong>{{ data.templateName }}</strong> wird dauerhaft geloescht. Bereits daraus erstellte
|
||||
<strong>{{ data.templateName }}</strong> wird dauerhaft gelöscht. Bereits daraus erstellte
|
||||
Listen bleiben erhalten.
|
||||
</p>
|
||||
</mat-dialog-content>
|
||||
@@ -15,6 +15,6 @@
|
||||
<button mat-button type="button" mat-dialog-close>Abbrechen</button>
|
||||
<button mat-flat-button type="button" color="warn" [mat-dialog-close]="true">
|
||||
<mat-icon aria-hidden="true">delete</mat-icon>
|
||||
Loeschen
|
||||
Löschen
|
||||
</button>
|
||||
</mat-dialog-actions>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<section class="template-detail-page">
|
||||
<header class="detail-header">
|
||||
<button mat-icon-button type="button" aria-label="Zurueck" (click)="backToTemplates()">
|
||||
<button mat-icon-button type="button" aria-label="Zurück" (click)="backToTemplates()">
|
||||
<mat-icon aria-hidden="true">arrow_back</mat-icon>
|
||||
</button>
|
||||
<div>
|
||||
@@ -23,7 +23,7 @@
|
||||
}
|
||||
Als Liste
|
||||
</button>
|
||||
<button mat-icon-button type="button" aria-label="Template loeschen" [disabled]="deletingTemplate()" (click)="deleteTemplate()">
|
||||
<button mat-icon-button type="button" aria-label="Template löschen" [disabled]="deletingTemplate()" (click)="deleteTemplate()">
|
||||
@if (deletingTemplate()) {
|
||||
<mat-progress-spinner mode="indeterminate" diameter="18" />
|
||||
} @else {
|
||||
@@ -91,12 +91,12 @@
|
||||
<mat-card-title>Items</mat-card-title>
|
||||
<mat-card-subtitle>
|
||||
@if (canEditItems()) {
|
||||
{{ template()?.items?.length || 0 }} Eintraege
|
||||
{{ template()?.items?.length || 0 }} Einträge
|
||||
@if (reordering()) {
|
||||
- Reihenfolge wird gespeichert
|
||||
}
|
||||
} @else {
|
||||
Nach dem Speichern verfuegbar
|
||||
Nach dem Speichern verfügbar
|
||||
}
|
||||
</mat-card-subtitle>
|
||||
</mat-card-header>
|
||||
@@ -119,14 +119,14 @@
|
||||
} @else {
|
||||
<mat-icon aria-hidden="true">add</mat-icon>
|
||||
}
|
||||
Hinzufuegen
|
||||
Hinzufügen
|
||||
</button>
|
||||
</form>
|
||||
|
||||
@if (!canEditItems()) {
|
||||
<div class="inline-empty">
|
||||
<mat-icon aria-hidden="true">save</mat-icon>
|
||||
<span>Speichere das Template, bevor du Items hinzufuegst.</span>
|
||||
<span>Speichere das Template, bevor du Items hinzufügst.</span>
|
||||
</div>
|
||||
} @else if (template()?.items?.length) {
|
||||
<ul
|
||||
|
||||
@@ -297,7 +297,7 @@ export class TemplateDetailComponent implements OnInit {
|
||||
.pipe(finalize(() => this.deletingTemplate.set(false)))
|
||||
.subscribe({
|
||||
next: () => {
|
||||
this.snackBar.open('Template geloescht.', 'OK', { duration: 3000 });
|
||||
this.snackBar.open('Template gelöscht.', 'OK', { duration: 3000 });
|
||||
void this.router.navigateByUrl('/templates');
|
||||
},
|
||||
error: (error: unknown) => {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<header class="page-header">
|
||||
<div>
|
||||
<h1>Templates</h1>
|
||||
<p>Vorlagen fuer wiederkehrende Listen.</p>
|
||||
<p>Vorlagen für wiederkehrende Listen.</p>
|
||||
</div>
|
||||
|
||||
<a
|
||||
@@ -52,7 +52,7 @@
|
||||
<div class="template-meta">
|
||||
<span>
|
||||
<mat-icon aria-hidden="true">checklist</mat-icon>
|
||||
{{ template.items.length }} Eintraege
|
||||
{{ template.items.length }} Einträge
|
||||
</span>
|
||||
<span>
|
||||
<mat-icon aria-hidden="true">schedule</mat-icon>
|
||||
@@ -95,7 +95,7 @@
|
||||
<button
|
||||
mat-icon-button
|
||||
type="button"
|
||||
[attr.aria-label]="template.name + ' loeschen'"
|
||||
[attr.aria-label]="template.name + ' löschen'"
|
||||
[disabled]="deletingTemplateId() === template.id"
|
||||
(click)="deleteTemplate(template)"
|
||||
>
|
||||
|
||||
@@ -131,7 +131,7 @@ export class TemplatesComponent implements OnInit {
|
||||
(existingTemplate) => existingTemplate.id !== template.id,
|
||||
),
|
||||
);
|
||||
this.snackBar.open('Template geloescht.', 'OK', { duration: 3000 });
|
||||
this.snackBar.open('Template gelöscht.', 'OK', { duration: 3000 });
|
||||
},
|
||||
error: (error: unknown) => {
|
||||
this.snackBar.open(getAuthErrorMessage(error), 'OK', {
|
||||
|
||||
Reference in New Issue
Block a user