|
|
@ -50,6 +50,7 @@ const doAction = async (action: Action) => { |
|
|
|
await validate() |
|
|
|
await validate() |
|
|
|
pluginFormData.value = formState.value |
|
|
|
pluginFormData.value = formState.value |
|
|
|
await saveSettings() |
|
|
|
await saveSettings() |
|
|
|
|
|
|
|
vOpen.value = false |
|
|
|
break |
|
|
|
break |
|
|
|
case Action.Test: |
|
|
|
case Action.Test: |
|
|
|
await validate() |
|
|
|
await validate() |
|
|
@ -66,7 +67,8 @@ const doAction = async (action: Action) => { |
|
|
|
</script> |
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
|
|
<template> |
|
|
|
<template> |
|
|
|
<NcModal :visible="vOpen" centered width="70rem" wrap-class-name="nc-modal-create-source" @keydown.esc="vOpen = false"> |
|
|
|
<NcModal :visible="vOpen" centered width="70rem" wrap-class-name="nc-modal-create-source" |
|
|
|
|
|
|
|
@keydown.esc="vOpen = false"> |
|
|
|
<div class="flex-1 flex flex-col max-h-full min-h-400px"> |
|
|
|
<div class="flex-1 flex flex-col max-h-full min-h-400px"> |
|
|
|
<div class="px-4 pb-4 w-full flex items-center gap-3 border-b-1 border-gray-200"> |
|
|
|
<div class="px-4 pb-4 w-full flex items-center gap-3 border-b-1 border-gray-200"> |
|
|
|
<GeneralIcon icon="arrowLeft" class="cursor-pointer flex-none text-[20px]" @click="vOpen = false"/> |
|
|
|
<GeneralIcon icon="arrowLeft" class="cursor-pointer flex-none text-[20px]" @click="vOpen = false"/> |
|
|
@ -92,7 +94,7 @@ const doAction = async (action: Action) => { |
|
|
|
:disabled="!!loadingAction" |
|
|
|
:disabled="!!loadingAction" |
|
|
|
@click="doAction(action.key)" |
|
|
|
@click="doAction(action.key)" |
|
|
|
> |
|
|
|
> |
|
|
|
{{ action.label }} |
|
|
|
{{ action.label === 'Save' ? 'Save configuration' : action.label }} |
|
|
|
</NcButton> |
|
|
|
</NcButton> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|