Skip to content

Commit

Permalink
Fix disabled state in CreateOrEditTask.vue
Browse files Browse the repository at this point in the history
  • Loading branch information
stephdl committed Sep 24, 2024
1 parent 4d4cb6b commit 99ab962
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions ui/src/components/CreateOrEditTask.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
:invalid-message="$t(error.localuser)"
tooltipAlignment="start"
tooltipDirection="top"
:disabled="loading.createTask"
ref="localuser"
>
<template slot="tooltip">
Expand All @@ -52,6 +53,7 @@
:label="$t('tasks.remoteusername')"
ref="remoteusername"
:invalid-message="$t(error.remoteusername)"
:disabled="loading.createTask"
/>
<NsTextInput
v-model.trim="task.remotepassword"
Expand All @@ -62,20 +64,23 @@
:placeholder="
isEdit ? $t('tasks.unchanged_password_placeholder') : ''
"
:disabled="loading.createTask"
/>
<NsTextInput
v-model.trim="task.remotehostname"
:label="$t('tasks.remotehostname')"
placeholder="imap.domain.com"
ref="remotehostname"
:invalid-message="$t(error.remotehostname)"
:disabled="loading.createTask"
/>
<NsTextInput
v-model.trim="task.remoteport"
type="number"
:label="$t('tasks.remoteport')"
ref="remoteport"
:invalid-message="$t(error.remoteport)"
:disabled="loading.createTask"
/>
<cv-dropdown
:light="true"
Expand All @@ -87,6 +92,7 @@
:helper-text="$t('tasks.encryption_depends_remote_server')"
:hide-selected="false"
:label="$t('tasks.select_your_encryption')"
:disabled="loading.createTask"
>
<cv-dropdown-item selected value="">{{
$t("tasks.none")
Expand Down Expand Up @@ -114,18 +120,21 @@
:label="$t('tasks.syncronize_all')"
value="all"
v-model="task.foldersynchronization"
:disabled="loading.createTask"
/>
<cv-radio-button
:name="'radio-group-foldersynchronization'"
:label="$t('tasks.synchronize_only_INBOX')"
value="inbox"
v-model="task.foldersynchronization"
:disabled="loading.createTask"
/>
<cv-radio-button
:name="'radio-group-foldersynchronization'"
:label="$t('tasks.syncronize_with_exclusion')"
value="exclusion"
v-model="task.foldersynchronization"
:disabled="loading.createTask"
/>
</cv-radio-group>
<template v-if="task.foldersynchronization == 'exclusion'">
Expand All @@ -137,6 +146,7 @@
:invalid-message="$t(error.exclude)"
:placeholder="$t('tasks.write_one_exclusion_per_line')"
:helper-text="$t('tasks.start_by^_and_end_by$')"
:disabled="loading.createTask"
>
</cv-text-area>
</template>
Expand All @@ -157,13 +167,15 @@
:label="$t('tasks.no_deletion')"
value="no_delete"
v-model="task.delete"
:disabled="loading.createTask"
/>

<cv-radio-button
:name="'radio-group-delete_local'"
:label="$t('tasks.delete_on_remote')"
value="delete_remote"
v-model="task.delete"
:disabled="loading.createTask"
/>
<!-- <cv-radio-button
:name="'radio-group-delete_remote'"
Expand Down

0 comments on commit 99ab962

Please sign in to comment.