Added imprint and privacy urls
This commit is contained in:
parent
ff415c354d
commit
7be40ed236
@ -21,6 +21,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="right">
|
<div class="right">
|
||||||
<a href="https://www.sh-edraft.de/Impressum" target="_blank">{{'footer.imprint' | translate}}</a>
|
<a [href]="privacy" target="_blank">{{'footer.privacy' | translate}}</a>
|
||||||
|
<span> | </span>
|
||||||
|
<a [href]="imprint" target="_blank">{{'footer.imprint' | translate}}</a>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
@ -17,6 +17,9 @@ export class FooterComponent implements OnInit {
|
|||||||
frontendVersion: SoftwareVersion = new SoftwareVersion("0", "0", "0");
|
frontendVersion: SoftwareVersion = new SoftwareVersion("0", "0", "0");
|
||||||
backendVersion: SoftwareVersion = new SoftwareVersion("0", "0", "0");
|
backendVersion: SoftwareVersion = new SoftwareVersion("0", "0", "0");
|
||||||
|
|
||||||
|
public privacy: string = "";
|
||||||
|
public imprint: string = "";
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
private settings: SettingsService,
|
private settings: SettingsService,
|
||||||
private guiService: GuiService,
|
private guiService: GuiService,
|
||||||
@ -24,6 +27,8 @@ export class FooterComponent implements OnInit {
|
|||||||
) {}
|
) {}
|
||||||
|
|
||||||
ngOnInit(): void {
|
ngOnInit(): void {
|
||||||
|
this.privacy = this.settings.getPrivacyURL();
|
||||||
|
this.imprint = this.settings.getImprintURL();
|
||||||
this.frontendVersion = this.settings.getWebVersion() ?? new SoftwareVersion('0', '0', '0');
|
this.frontendVersion = this.settings.getWebVersion() ?? new SoftwareVersion('0', '0', '0');
|
||||||
|
|
||||||
this.spinnerService.showSpinner();
|
this.spinnerService.showSpinner();
|
||||||
|
@ -3,6 +3,8 @@ import { Theme } from '../view/theme';
|
|||||||
|
|
||||||
export interface Appsettings {
|
export interface Appsettings {
|
||||||
ApiURL: string;
|
ApiURL: string;
|
||||||
|
PrivacyURL: string;
|
||||||
|
ImprintURL: string;
|
||||||
WebVersion: SoftwareVersion;
|
WebVersion: SoftwareVersion;
|
||||||
Themes: Theme[];
|
Themes: Theme[];
|
||||||
}
|
}
|
@ -30,13 +30,29 @@ export class SettingsService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public getApiURL(): string {
|
public getApiURL(): string {
|
||||||
if (!this.appsettings || !this.appsettings.Themes) {
|
if (!this.appsettings || !this.appsettings.ApiURL) {
|
||||||
console.error('ApiUrl is not set!');
|
console.error('ApiUrl is not set!');
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
return this.appsettings.ApiURL;
|
return this.appsettings.ApiURL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public getPrivacyURL(): string {
|
||||||
|
if (!this.appsettings || !this.appsettings.PrivacyURL) {
|
||||||
|
console.error('PrivacyURL is not set!');
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
return this.appsettings.PrivacyURL;
|
||||||
|
}
|
||||||
|
|
||||||
|
public getImprintURL(): string {
|
||||||
|
if (!this.appsettings || !this.appsettings.ImprintURL) {
|
||||||
|
console.error('ImprintURL is not set!');
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
return this.appsettings.ImprintURL;
|
||||||
|
}
|
||||||
|
|
||||||
public getWebVersion(): SoftwareVersion | null {
|
public getWebVersion(): SoftwareVersion | null {
|
||||||
if (!this.appsettings || !this.appsettings.WebVersion) {
|
if (!this.appsettings || !this.appsettings.WebVersion) {
|
||||||
console.error('WebVersion is not set!');
|
console.error('WebVersion is not set!');
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
{
|
{
|
||||||
"ApiURL": "http://localhost:8044",
|
"ApiURL": "http://localhost:8044",
|
||||||
|
"PrivacyURL": "https://www.sh-edraft.de/Datenschutz",
|
||||||
|
"ImprintURL": "https://www.sh-edraft.de/Impressum",
|
||||||
"WebVersion": {
|
"WebVersion": {
|
||||||
"Major": "1",
|
"Major": "1",
|
||||||
"Minor": "0",
|
"Minor": "0",
|
||||||
|
@ -163,7 +163,8 @@
|
|||||||
"footer": {
|
"footer": {
|
||||||
"backend": "API",
|
"backend": "API",
|
||||||
"frontend": "Webseite",
|
"frontend": "Webseite",
|
||||||
"imprint": "Impressum"
|
"imprint": "Impressum",
|
||||||
|
"privacy": "Datenschutz"
|
||||||
},
|
},
|
||||||
"general": {
|
"general": {
|
||||||
"days": "Tage",
|
"days": "Tage",
|
||||||
|
@ -163,7 +163,8 @@
|
|||||||
"footer": {
|
"footer": {
|
||||||
"backend": "Website",
|
"backend": "Website",
|
||||||
"frontend": "API",
|
"frontend": "API",
|
||||||
"imprint": "Imprint"
|
"imprint": "Imprint",
|
||||||
|
"privacy": "Privacy"
|
||||||
},
|
},
|
||||||
"general": {
|
"general": {
|
||||||
"days": "Days",
|
"days": "Days",
|
||||||
|
Loading…
Reference in New Issue
Block a user