diff --git a/backend/src/middleware/notifications/notificationsMiddleware.js b/backend/src/middleware/notifications/notificationsMiddleware.js index 2bc53ab7c..5419771ea 100644 --- a/backend/src/middleware/notifications/notificationsMiddleware.js +++ b/backend/src/middleware/notifications/notificationsMiddleware.js @@ -41,7 +41,6 @@ const publishNotifications = async (context, promises) => { notifications.forEach((notificationAdded, index) => { pubsub.publish(NOTIFICATION_ADDED, { notificationAdded }) if (notificationAdded.to.sendNotificationEmails) { - // Wolle await sendMail( notificationTemplate({ email: notificationsEmailAddresses[index].email, diff --git a/webapp/components/_new/features/MySomethingList/MySomethingList.spec.js b/webapp/components/_new/features/MySomethingList/MySomethingList.spec.js index e1d4d421b..2c279d0e6 100644 --- a/webapp/components/_new/features/MySomethingList/MySomethingList.spec.js +++ b/webapp/components/_new/features/MySomethingList/MySomethingList.spec.js @@ -106,7 +106,12 @@ describe('MySomethingList.vue', () => { await Vue.nextTick() const expectedItem = expect.objectContaining({ id: '' }) expect(propsData.callbacks.submit).toHaveBeenCalledTimes(1) - expect(propsData.callbacks.submit).toHaveBeenCalledWith(expect.any(Object), true, expectedItem, { dummy: '' }) + expect(propsData.callbacks.submit).toHaveBeenCalledWith( + expect.any(Object), + true, + expectedItem, + { dummy: '' }, + ) }) it('call delete', async () => { diff --git a/webapp/components/_new/features/MySomethingList/MySomethingList.vue b/webapp/components/_new/features/MySomethingList/MySomethingList.vue index b5d44e111..2b1b176ba 100644 --- a/webapp/components/_new/features/MySomethingList/MySomethingList.vue +++ b/webapp/components/_new/features/MySomethingList/MySomethingList.vue @@ -4,16 +4,15 @@ :schema="formSchema" @input="handleInput" @input-valid="handleInputValid" - @submit="handleSubmitSocialMedia" + @submit="handleSubmitItem" >
- {{ - /* $t('settings.social-media.name') */ isCreation - ? 'Add new' - : 'Edit "' + editingItem[namePropertyKey] + '"' + isCreation + ? $t('settings.social-media.addNewTitle') + : $t('settings.social-media.editTitle', { name: editingItem[namePropertyKey] }) }} @@ -25,7 +24,6 @@ -