Skip to content

Commit

Permalink
Revert static modifier of OntotextYasguiService's functions which not…
Browse files Browse the repository at this point in the history
… use state of the service.
  • Loading branch information
boyan-tonchev committed Jan 17, 2023
1 parent 497fb0c commit 89fa003
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ export class OntotextYasguiService {

postConstruct(hostElement: HTMLElement, config: YasguiConfiguration): void {

this.initEditorTabs(hostElement, config);
this.initControlBar(hostElement, config);
this.initResultTabs(hostElement, config);
this.initButtonsStyling(hostElement, config);
OntotextYasguiService.initEditorTabs(hostElement, config);
OntotextYasguiService.initControlBar(hostElement, config);
OntotextYasguiService.initResultTabs(hostElement, config);
OntotextYasguiService.initButtonsStyling(hostElement, config);
this.updateTranslation(config);
}

Expand All @@ -27,15 +27,15 @@ export class OntotextYasguiService {
}
}

private initEditorTabs(hostElement: HTMLElement, config: YasguiConfiguration): void {
private static initEditorTabs(hostElement: HTMLElement, config: YasguiConfiguration): void {
if (config.showEditorTabs) {
hostElement.classList.remove('hidden-editor-tabs');
} else {
hostElement.classList.add('hidden-editor-tabs');
}
}

private initControlBar(hostElement: HTMLElement, config: YasguiConfiguration): void {
private static initControlBar(hostElement: HTMLElement, config: YasguiConfiguration): void {
const ontotextYasgui = HtmlElementsUtil.getOntotextYasgui(hostElement);
if (config.showControlBar) {
ontotextYasgui.classList.remove('hidden-control-bar');
Expand All @@ -44,15 +44,15 @@ export class OntotextYasguiService {
}
}

private initResultTabs(hostElement: HTMLElement, config: YasguiConfiguration): void {
private static initResultTabs(hostElement: HTMLElement, config: YasguiConfiguration): void {
if (config.showResultTabs) {
hostElement.classList.remove('hidden-result-tabs');
} else {
hostElement.classList.add('hidden-result-tabs');
}
}

private initButtonsStyling(hostElement: HTMLElement, config: YasguiConfiguration): void {
private static initButtonsStyling(hostElement: HTMLElement, config: YasguiConfiguration): void {
// Initialize render buttons styling.
VisualisationUtils.changeRenderMode(hostElement, config.render);

Expand Down

0 comments on commit 89fa003

Please sign in to comment.