refactor(time_selector): mark methods as private

This commit is contained in:
Panagiotis Papadopoulos 2025-02-18 22:15:36 +01:00
parent fd2c65dcc0
commit 2d968b8e9c

View File

@ -98,7 +98,7 @@ export default class TimeSelector extends OptionsWidget {
this.$timeScaleSelect.val(options[this.optionTimeScaleId]);
}
convertTime(time: string | number, timeScale: string | number) {
private convertTime(time: string | number, timeScale: string | number) {
const value = typeof time === "number" ? time : parseInt(time);
if (Number.isNaN(value)) {
throw new Error(`Time needs to be a valid integer, but received: ${time}`);
@ -115,7 +115,7 @@ export default class TimeSelector extends OptionsWidget {
};
}
handleTimeValidation() {
private handleTimeValidation() {
if (this.$timeValueInput.is(":invalid")) {
toastService.showError(t("time_selector.invalid_input"));
return false;