diff --git a/app/javascript/dashboard/components-next/captain/pageComponents/customTool/ToolTestDialog.vue b/app/javascript/dashboard/components-next/captain/pageComponents/customTool/ToolTestDialog.vue index 8de14de..cce088a 100644 --- a/app/javascript/dashboard/components-next/captain/pageComponents/customTool/ToolTestDialog.vue +++ b/app/javascript/dashboard/components-next/captain/pageComponents/customTool/ToolTestDialog.vue @@ -31,7 +31,9 @@ if (props.tool.param_schema) { }); } -const hasParams = computed(() => props.tool.param_schema && props.tool.param_schema.length > 0); +const hasParams = computed( + () => props.tool.param_schema && props.tool.param_schema.length > 0 +); const handleClose = () => { emit('close'); @@ -41,7 +43,10 @@ const runTest = async () => { isLoading.value = true; testResult.value = null; try { - const { data } = await CaptainCustomToolsAPI.test(props.tool.id, testParams.value); + const { data } = await CaptainCustomToolsAPI.test( + props.tool.id, + testParams.value + ); testResult.value = data; } catch (error) { useAlert(t('CAPTAIN.CUSTOM_TOOLS.TEST.ERROR_MESSAGE')); @@ -64,12 +69,19 @@ defineExpose({ dialogRef }); >
-
+

{{ $t('CAPTAIN.CUSTOM_TOOLS.TEST.PARAMETERS') }}

-
+
- diff --git a/app/javascript/dashboard/store/captain/tools.js b/app/javascript/dashboard/store/captain/tools.js index e541664..6ea308a 100755 --- a/app/javascript/dashboard/store/captain/tools.js +++ b/app/javascript/dashboard/store/captain/tools.js @@ -8,7 +8,6 @@ const toolsStore = createStore({ // Custom getters for tools with string IDs getters: { getRecords: state => { - console.log('[DEBUG captainTools] getRecords called, records:', state.records); return state.records; }, getRecord: state => id => @@ -16,16 +15,13 @@ const toolsStore = createStore({ }, actions: mutations => ({ getTools: async ({ commit }) => { - console.log('[DEBUG captainTools] getTools action started'); commit(mutations.SET_UI_FLAG, { fetchingList: true }); try { const response = await CaptainToolsAPI.get(); - console.log('[DEBUG captainTools] API response:', response.data); commit(mutations.SET, response.data); commit(mutations.SET_UI_FLAG, { fetchingList: false }); return response.data; } catch (error) { - console.error('[DEBUG captainTools] API error:', error); commit(mutations.SET_UI_FLAG, { fetchingList: false }); return throwErrorMessage(error); } @@ -34,4 +30,3 @@ const toolsStore = createStore({ }); export default toolsStore; -