Bereits gespeichert:
{{ sugg.vorname }}
{{ sugg.zuname }}
diff --git a/src/app/utilities/form-input-components/anschrift-form/anschrift-form.component.ts b/src/app/utilities/form-input-components/anschrift-form/anschrift-form.component.ts
index 3fec1d7..10a1f45 100644
--- a/src/app/utilities/form-input-components/anschrift-form/anschrift-form.component.ts
+++ b/src/app/utilities/form-input-components/anschrift-form/anschrift-form.component.ts
@@ -137,13 +137,13 @@ export class AnschriftFormComponent
if (!vorname && !zuname && !firma) {
return {
- Anschrift:
+ Kontrahent:
"Zumindest Vor/Zuname oder Firma müssen angegeben werden.",
};
}
if ((!vorname || !zuname) && !firma) {
return {
- Anschrift:
+ Kontrahent:
"Zumindest Vor/Zuname oder Firma müssen angegeben werden.",
};
}
diff --git a/src/app/utilities/mkj-toolbar/mkj-toolbar.service.ts b/src/app/utilities/mkj-toolbar/mkj-toolbar.service.ts
index 8aa7103..c644559 100644
--- a/src/app/utilities/mkj-toolbar/mkj-toolbar.service.ts
+++ b/src/app/utilities/mkj-toolbar/mkj-toolbar.service.ts
@@ -1,19 +1,14 @@
import { Location } from "@angular/common";
import { Injectable, OnDestroy, OnInit, TemplateRef } from "@angular/core";
-import {
- ActivatedRoute,
- ActivationStart,
- NavigationEnd,
- NavigationStart,
- Router,
-} from "@angular/router";
+import { ActivationStart, NavigationEnd, Router } from "@angular/router";
+import { PermissionMap } from "src/app/models/User";
import { UserService } from "src/app/services/authentication/user.service";
import { SubSink } from "subsink";
export interface MkjToolbarButton {
icon: string;
label?: string;
- permissions?: string[];
+ permissions?: PermissionMap[];
routerLink?: string;
click?: (event: MouseEvent) => void;
visible?: boolean;
diff --git a/src/polyfills.ts b/src/polyfills.ts
index 93f8480..24a1cc9 100644
--- a/src/polyfills.ts
+++ b/src/polyfills.ts
@@ -1,7 +1,7 @@
/***************************************************************************************************
* Load `$localize` onto the global scope - used if i18n tags appear in Angular templates.
*/
-import '@angular/localize/init';
+import "@angular/localize/init";
/**
* This file includes polyfills needed by Angular and is loaded before the app.
* You can add your own extra polyfills to this file.
@@ -20,7 +20,7 @@ import '@angular/localize/init';
/***************************************************************************************************
* BROWSER POLYFILLS
- */ // Run `npm install --save web-animations-js`.
+ */ // Run `npm install --save web-animations-js`.
/**
* By default, zone.js will patch all possible macroTask and DomEvents
@@ -49,8 +49,7 @@ import '@angular/localize/init';
/***************************************************************************************************
* Zone JS is required by default for Angular itself.
*/
-import 'zone.js/dist/zone'; // Included with Angular CLI.
-
+import "zone.js"; // Included with Angular CLI.
/***************************************************************************************************
* APPLICATION IMPORTS