Skip to content

Commit

Permalink
fix: do not use time namespace to parseDuration
Browse files Browse the repository at this point in the history
It was dropped, unfortunately linter didn't catch it.

Signed-off-by: Artem Chernyshev <artem.chernyshev@talos-systems.com>
  • Loading branch information
Unix4ever committed Jun 19, 2024
1 parent 1d92ae5 commit d8df8af
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ import { Duration as GoogleProtobufDuration } from "@/api/google/protobuf/durati

import TCheckbox from "@/components/common/Checkbox/TCheckbox.vue";
import IconButton from "@/components/common/Button/IconButton.vue";
import { formatDuration } from "@/methods/time";
import { formatDuration, parseDuration } from "@/methods/time";
import pluralize from "pluralize";
import { Duration } from "luxon";
import TInput from "@/components/common/TInput/TInput.vue";
Expand Down Expand Up @@ -79,7 +79,7 @@ const interval = computed(() => {
return undefined;
}

return time.parseDuration(value).shiftTo("hours");
return parseDuration(value).shiftTo("hours");
});

const backupIntervalPreview = ref(interval.value?.hours ?? 1);
Expand Down

0 comments on commit d8df8af

Please sign in to comment.