Skip to content

Commit

Permalink
lint-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mpreyskurantov committed Aug 8, 2024
1 parent cf4d942 commit fb4680a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/app/left-menu/editor/editor.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@ export class EditorComponent {
}

getSettingsName(): string {
const routeParts = this.router.url.split('/').filter(part => part !== '');
const routeParts = this.router.url.split('/').filter((part) => part !== '');
return routeParts[routeParts.length - 1];
}

valueTextChanged(e: { value: string, component: any }, key: string): void {
this.analyticsEventsService.trackEvent(
'TB: Settings',
`Tb ${this.getSettingsName()} - ${key}`
)
);
if(this.isValueCanBePixels() && this.isPositiveNumber(e.value)) {
e.value = e.value + 'px';
}
Expand All @@ -57,7 +57,7 @@ export class EditorComponent {
this.analyticsEventsService.trackEvent(
'TB: Settings',
`Tb ${this.getSettingsName()} - ${key}`
)
);
this.metaRepository.updateSingleVariable(e, key);
}
}
2 changes: 1 addition & 1 deletion src/app/left-menu/main/left-menu.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export class LeftMenuComponent implements OnDestroy, OnInit {
selectComponent(componentName: string): void {
this.analyticsEventsService.trackEvent(
'TB: Settings',
`Tb select subgroup`,
'Tb select subgroup',
componentName
);
this.menuClosed = true;
Expand Down

0 comments on commit fb4680a

Please sign in to comment.