Browse Source

Maintenance: Desktop view - Fixed problem with not changeable port.

Dominik Klein 6 months ago
parent
commit
0e813540d1

+ 7 - 8
app/frontend/apps/desktop/entities/channel-email/composables/useEmailInboundForm.ts

@@ -6,6 +6,7 @@ import type {
   FormFieldValue,
   FormRef,
   FormSchemaField,
+  FormValues,
 } from '#shared/components/Form/types.ts'
 import { useForm } from '#shared/components/Form/useForm.ts'
 import type { ChannelEmailInboundMailboxStats } from '#shared/graphql/types.ts'
@@ -72,19 +73,17 @@ export const useEmailInboundForm = () => {
       disabled,
     }
 
-    updateFieldValues({
+    const newValues: FormValues = {
       sslVerify: !disabled,
-    })
+    }
 
     if (newValue === 'off') {
-      emailInboundFormChangeFields.port = {
-        value: 143,
-      }
+      newValues.port = 143
     } else if (newValue === 'ssl') {
-      emailInboundFormChangeFields.port = {
-        value: 993,
-      }
+      newValues.port = 993
     }
+
+    updateFieldValues(newValues)
   })
 
   const emailInboundSchema = [

+ 12 - 12
i18n/zammad.pot

@@ -6273,7 +6273,7 @@ msgstr ""
 #: app/assets/javascripts/app/controllers/_channel/microsoft365.coffee:291
 #: app/assets/javascripts/app/controllers/getting_started/channel_email.coffee:86
 #: app/assets/javascripts/app/views/integration/exchange.jst.eco:59
-#: app/frontend/apps/desktop/entities/channel-email/composables/useEmailInboundForm.ts:177
+#: app/frontend/apps/desktop/entities/channel-email/composables/useEmailInboundForm.ts:176
 msgid "Folder"
 msgstr ""
 
@@ -7052,7 +7052,7 @@ msgstr ""
 #: app/assets/javascripts/app/controllers/getting_started/email_notification.coffee:69
 #: app/assets/javascripts/app/views/channel/email_account_overview.jst.eco:73
 #: app/assets/javascripts/app/views/integration/ldap_wizard.jst.eco:29
-#: app/frontend/apps/desktop/entities/channel-email/composables/useEmailInboundForm.ts:112
+#: app/frontend/apps/desktop/entities/channel-email/composables/useEmailInboundForm.ts:111
 #: app/frontend/apps/desktop/entities/channel-email/composables/useEmailOutboundForm.ts:67
 msgid "Host"
 msgstr ""
@@ -7891,7 +7891,7 @@ msgstr ""
 #: app/assets/javascripts/app/controllers/_channel/google.coffee:280
 #: app/assets/javascripts/app/controllers/_channel/microsoft365.coffee:292
 #: app/assets/javascripts/app/controllers/getting_started/channel_email.coffee:87
-#: app/frontend/apps/desktop/entities/channel-email/composables/useEmailInboundForm.ts:187
+#: app/frontend/apps/desktop/entities/channel-email/composables/useEmailInboundForm.ts:186
 msgid "Keep messages on server"
 msgstr ""
 
@@ -9579,7 +9579,7 @@ msgstr ""
 #: app/assets/javascripts/app/controllers/_channel/email.coffee:415
 #: app/assets/javascripts/app/controllers/_integration/ldap.coffee:203
 #: app/assets/javascripts/app/controllers/getting_started/channel_email.coffee:83
-#: app/frontend/apps/desktop/entities/channel-email/composables/useEmailInboundForm.ts:44
+#: app/frontend/apps/desktop/entities/channel-email/composables/useEmailInboundForm.ts:45
 msgid "No SSL"
 msgstr ""
 
@@ -10589,7 +10589,7 @@ msgstr ""
 #: app/assets/javascripts/app/views/login.jst.eco:35
 #: app/frontend/apps/desktop/composables/authentication/useSignupForm.ts:43
 #: app/frontend/apps/desktop/entities/channel-email/composables/useEmailAccountForm.ts:41
-#: app/frontend/apps/desktop/entities/channel-email/composables/useEmailInboundForm.ts:132
+#: app/frontend/apps/desktop/entities/channel-email/composables/useEmailInboundForm.ts:131
 #: app/frontend/apps/desktop/entities/channel-email/composables/useEmailOutboundForm.ts:87
 #: app/frontend/apps/desktop/pages/authentication/views/Login.vue:104
 #: app/frontend/apps/desktop/pages/authentication/views/PasswordResetVerify.vue:51
@@ -10957,7 +10957,7 @@ msgstr ""
 #: app/assets/javascripts/app/controllers/_channel/email.coffee:417
 #: app/assets/javascripts/app/controllers/getting_started/channel_email.coffee:85
 #: app/assets/javascripts/app/controllers/getting_started/email_notification.coffee:72
-#: app/frontend/apps/desktop/entities/channel-email/composables/useEmailInboundForm.ts:164
+#: app/frontend/apps/desktop/entities/channel-email/composables/useEmailInboundForm.ts:163
 #: app/frontend/apps/desktop/entities/channel-email/composables/useEmailOutboundForm.ts:97
 msgid "Port"
 msgstr ""
@@ -11905,7 +11905,7 @@ msgstr ""
 #: app/assets/javascripts/app/controllers/_channel/email.coffee:415
 #: app/assets/javascripts/app/controllers/_integration/ldap.coffee:207
 #: app/assets/javascripts/app/controllers/getting_started/channel_email.coffee:83
-#: app/frontend/apps/desktop/entities/channel-email/composables/useEmailInboundForm.ts:48
+#: app/frontend/apps/desktop/entities/channel-email/composables/useEmailInboundForm.ts:49
 msgid "SSL"
 msgstr ""
 
@@ -11924,7 +11924,7 @@ msgstr ""
 #: app/assets/javascripts/app/views/integration/idoit.jst.eco:24
 #: app/assets/javascripts/app/views/integration/ldap.jst.eco:31
 #: app/assets/javascripts/app/views/integration/ldap_ssl_verify_row.jst.eco:2
-#: app/frontend/apps/desktop/entities/channel-email/composables/useEmailInboundForm.ts:150
+#: app/frontend/apps/desktop/entities/channel-email/composables/useEmailInboundForm.ts:149
 #: app/frontend/apps/desktop/entities/channel-email/composables/useEmailOutboundForm.ts:108
 #: app/frontend/apps/desktop/pages/guided-setup/components/GuidedSetupImport/GuidedSetupImportSource/GuidedSetupImportSourceOTRS.vue:63
 msgid "SSL verification"
@@ -11934,7 +11934,7 @@ msgstr ""
 #: app/assets/javascripts/app/controllers/getting_started/channel_email.coffee:83
 #: app/assets/javascripts/app/views/integration/ldap.jst.eco:27
 #: app/assets/javascripts/app/views/integration/ldap_wizard.jst.eco:33
-#: app/frontend/apps/desktop/entities/channel-email/composables/useEmailInboundForm.ts:142
+#: app/frontend/apps/desktop/entities/channel-email/composables/useEmailInboundForm.ts:141
 msgid "SSL/STARTTLS"
 msgstr ""
 
@@ -11947,7 +11947,7 @@ msgstr ""
 #: app/assets/javascripts/app/controllers/_channel/email.coffee:415
 #: app/assets/javascripts/app/controllers/_integration/ldap.coffee:205
 #: app/assets/javascripts/app/controllers/getting_started/channel_email.coffee:83
-#: app/frontend/apps/desktop/entities/channel-email/composables/useEmailInboundForm.ts:55
+#: app/frontend/apps/desktop/entities/channel-email/composables/useEmailInboundForm.ts:56
 msgid "STARTTLS"
 msgstr ""
 
@@ -16125,7 +16125,7 @@ msgstr ""
 #: app/assets/javascripts/app/views/integration/placetel.jst.eco:11
 #: app/assets/javascripts/app/views/integration/sipgate.jst.eco:11
 #: app/assets/javascripts/app/views/object_manager/index.jst.eco:57
-#: app/frontend/apps/desktop/entities/channel-email/composables/useEmailInboundForm.ts:105
+#: app/frontend/apps/desktop/entities/channel-email/composables/useEmailInboundForm.ts:104
 #: db/seeds/object_manager_attributes.rb:124
 msgid "Type"
 msgstr ""
@@ -16531,7 +16531,7 @@ msgstr ""
 #: app/assets/javascripts/app/views/integration/placetel.jst.eco:128
 #: app/assets/javascripts/app/views/integration/sipgate.jst.eco:111
 #: app/assets/javascripts/app/views/session.jst.eco:8
-#: app/frontend/apps/desktop/entities/channel-email/composables/useEmailInboundForm.ts:122
+#: app/frontend/apps/desktop/entities/channel-email/composables/useEmailInboundForm.ts:121
 #: app/frontend/apps/desktop/entities/channel-email/composables/useEmailOutboundForm.ts:77
 #: app/frontend/apps/mobile/pages/user/routes.ts:7
 #: app/frontend/apps/mobile/pages/user/views/UserDetailView.vue:32