@@ -46,16 +46,16 @@
class="flex flex-col justify-between w-full gap-5 sm:gap-4 sm:flex-row"
>
@@ -142,26 +142,26 @@ export default {
email: '',
isProfileUpdating: false,
errorMessage: '',
- keyOptions: [
+ hotKeys: [
{
key: 'enter',
- src: '/assets/images/dashboard/profile/hot-key-enter.svg',
- heading: this.$t(
+ title: this.$t(
'PROFILE_SETTINGS.FORM.SEND_MESSAGE.CARD.ENTER_KEY.HEADING'
),
- content: this.$t(
+ description: this.$t(
'PROFILE_SETTINGS.FORM.SEND_MESSAGE.CARD.ENTER_KEY.CONTENT'
),
+ src: '/assets/images/dashboard/profile/hot-key-enter.svg',
},
{
key: 'cmd_enter',
- src: '/assets/images/dashboard/profile/hot-key-ctrl-enter.svg',
- heading: this.$t(
+ title: this.$t(
'PROFILE_SETTINGS.FORM.SEND_MESSAGE.CARD.CMD_ENTER_KEY.HEADING'
),
- content: this.$t(
+ description: this.$t(
'PROFILE_SETTINGS.FORM.SEND_MESSAGE.CARD.CMD_ENTER_KEY.CONTENT'
),
+ src: '/assets/images/dashboard/profile/hot-key-ctrl-enter.svg',
},
],
};
@@ -237,7 +237,10 @@ export default {
this.showAlert(this.$t('PROFILE_SETTINGS.AVATAR_DELETE_FAILED'));
}
},
- toggleEditorMessageKey(key) {
+ toggleHotKey(key) {
+ this.hotKeys = this.hotKeys.map(hotKey =>
+ hotKey.key === key ? { ...hotKey, active: !hotKey.active } : hotKey
+ );
this.updateUISettings({ editor_message_key: key });
this.showAlert(
this.$t('PROFILE_SETTINGS.FORM.SEND_MESSAGE.UPDATE_SUCCESS')
diff --git a/app/javascript/dashboard/routes/dashboard/settings/personal/MessageSignature.vue b/app/javascript/dashboard/routes/dashboard/settings/personal/MessageSignature.vue
index 3eb1c3987..2b717c889 100644
--- a/app/javascript/dashboard/routes/dashboard/settings/personal/MessageSignature.vue
+++ b/app/javascript/dashboard/routes/dashboard/settings/personal/MessageSignature.vue
@@ -3,7 +3,7 @@
-
-
diff --git a/public/assets/images/dashboard/profile/hot-key-ctrl-enter.svg b/public/assets/images/dashboard/profile/hot-key-ctrl-enter.svg
index 7abfe902a..50a917722 100644
--- a/public/assets/images/dashboard/profile/hot-key-ctrl-enter.svg
+++ b/public/assets/images/dashboard/profile/hot-key-ctrl-enter.svg
@@ -1,7 +1,7 @@
diff --git a/public/assets/images/dashboard/profile/hot-key-enter.svg b/public/assets/images/dashboard/profile/hot-key-enter.svg
index b919c2cf8..a80e071aa 100644
--- a/public/assets/images/dashboard/profile/hot-key-enter.svg
+++ b/public/assets/images/dashboard/profile/hot-key-enter.svg
@@ -1,7 +1,7 @@