Commit 497c54e5 authored by Lukas Burgey's avatar Lukas Burgey

Use environment for settings

parent 36ecdfcf
......@@ -10,6 +10,8 @@ import { MatTableDataSource } from '@angular/material';
import { SnackBarService } from './snackbar.service';
import { environment } from '../environments/environment';
interface Group {
name: string;
}
......@@ -92,11 +94,11 @@ export class UserService {
}
public setIdPPreference(idpId: number) {
this.cookieService.set('idp_id', String(idpId));
this.cookieService.set(environment.idpCookieName, String(idpId));
}
public getIdPPreference(): number {
return Number(this.cookieService.get('idp_id'));
return Number(this.cookieService.get(environment.idpCookieName));
}
public updateData(data: any) {
......
......@@ -4,5 +4,6 @@
// The list of which env maps to which file can be found in `.angular-cli.json`.
export const environment = {
production: false
production: false,
idpCookieName: 'idp_id'
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment