TSK-1217 Remove orphaned titles.json
This commit is contained in:
parent
6613901203
commit
86ccde4040
|
@ -25,7 +25,6 @@ import { DomainService } from 'app/shared/services/domain/domain.service';
|
|||
import { StartupService } from 'app/shared/services/startup/startup.service';
|
||||
import { MasterAndDetailService } from 'app/shared/services/master-and-detail/master-and-detail.service';
|
||||
import { TreeService } from 'app/shared/services/tree/tree.service';
|
||||
import { TitlesService } from 'app/shared/services/titles/titles.service';
|
||||
import { WindowRefService } from 'app/shared/services/window/window.service';
|
||||
import { TaskanaEngineService } from 'app/shared/services/taskana-engine/taskana-engine.service';
|
||||
import { NavBarComponent } from 'app/shared/components/nav-bar/nav-bar.component';
|
||||
|
@ -105,7 +104,6 @@ export function startupServiceFactory(startupService: StartupService): () => Pro
|
|||
},
|
||||
MasterAndDetailService,
|
||||
TreeService,
|
||||
TitlesService,
|
||||
TaskanaEngineService,
|
||||
RemoveConfirmationService,
|
||||
FormsValidatorService,
|
||||
|
|
|
@ -1,15 +0,0 @@
|
|||
import { TestBed, inject } from '@angular/core/testing';
|
||||
|
||||
import { TitlesService } from './titles.service';
|
||||
|
||||
describe('TitlesService', () => {
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
providers: [TitlesService]
|
||||
});
|
||||
});
|
||||
|
||||
it('should be created', inject([TitlesService], (service: TitlesService) => {
|
||||
expect(service).toBeTruthy();
|
||||
}));
|
||||
});
|
|
@ -1,15 +0,0 @@
|
|||
import { Injectable } from '@angular/core';
|
||||
|
||||
@Injectable()
|
||||
export class TitlesService {
|
||||
titles = new Map<number, string>();
|
||||
customizedTitles: any = {};
|
||||
|
||||
initTitles(language: string = 'EN', jsonFile: any) {
|
||||
this.titles = jsonFile[language];
|
||||
}
|
||||
|
||||
getTitle(id: number, fallBacktext: string, customPath?: string) {
|
||||
return this.titles[id] ? this.titles[id] : fallBacktext;
|
||||
}
|
||||
}
|
|
@ -1,16 +0,0 @@
|
|||
{
|
||||
"EN": {
|
||||
"0": "Administration",
|
||||
"1": "Custom 1",
|
||||
"2": "Custom 2",
|
||||
"3": "Custom 3",
|
||||
"4": "Custom 4"
|
||||
},
|
||||
"DE": {
|
||||
"0": "Administration",
|
||||
"1": "Zusatzfeld 1",
|
||||
"2": "Zusatzfeld 2",
|
||||
"3": "Zusatzfeld 3",
|
||||
"4": "Zusatzfeld 4"
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue