From c22259bbd6d4e8de43bb2e8a8b0e8bcc177b9356 Mon Sep 17 00:00:00 2001 From: Rafael Araujo Lehmkuhl Date: Tue, 10 Dec 2024 17:06:04 -0300 Subject: [PATCH] [temp] remove some things --- src/libs/utils.ts | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/libs/utils.ts b/src/libs/utils.ts index eace84dbc..487419862 100644 --- a/src/libs/utils.ts +++ b/src/libs/utils.ts @@ -1,9 +1,5 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ -import { useInteractionDialog } from '@/composables/interactionDialog' - -const { showDialog } = useInteractionDialog() - export const constrain = (value: number, min: number, max: number): number => { return Math.max(Math.min(value, max), min) } @@ -135,7 +131,7 @@ export const tryOrAlert = async (tryFunction: () => Promise): Promise Promise): Promise { const restartMessage = `Restarting Cockpit in ${timeout / 1000} seconds...` - console.log(restartMessage) - showDialog({ message: restartMessage, variant: 'info', timer: timeout }) + console.info(restartMessage) setTimeout(() => location.reload(), timeout) }