mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 21:35:50 +00:00
fix some bug on blue theme
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import { TestBed } from '@angular/core/testing';
|
||||
|
||||
import { DomSanitizerService } from './DomSanitizer.service';
|
||||
|
||||
describe('ActiveTabService', () => {
|
||||
let service: DomSanitizerService;
|
||||
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({});
|
||||
service = TestBed.inject(DomSanitizerService);
|
||||
});
|
||||
|
||||
it('should be created', () => {
|
||||
expect(service).toBeTruthy();
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,20 @@
|
||||
import { Injectable, SecurityContext } from '@angular/core';
|
||||
import { DomSanitizer } from '@angular/platform-browser';
|
||||
import { Router } from '@angular/router';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
})
|
||||
export class DomSanitizerService {
|
||||
|
||||
|
||||
|
||||
constructor(private sanitizer: DomSanitizer) {
|
||||
|
||||
|
||||
}
|
||||
|
||||
sanitizeInput(input: string): string {
|
||||
return this.sanitizer.sanitize(SecurityContext.HTML, input);
|
||||
}
|
||||
}
|
||||
@@ -13,7 +13,7 @@ export class ThemeService {
|
||||
'doneIt'
|
||||
]
|
||||
|
||||
private defaultTheme: any = 'gov'
|
||||
private defaultTheme: any = 'default'
|
||||
currentTheme: 'gov' | 'default' | 'doneIt' = this.defaultTheme
|
||||
keyName: string
|
||||
|
||||
|
||||
Reference in New Issue
Block a user