From 30326d70981d6416f6b428d0a5982e5e1cddaa14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Ovejero?= Date: Tue, 23 Aug 2022 14:18:44 +0200 Subject: [PATCH] refactor(design-system): Remove leftover hook from design system (#3922) * :fire: Remove leftover hook from design system * :fire: Remove ref --- .../design-system/src/components/N8nUserInfo/UserInfo.vue | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/packages/design-system/src/components/N8nUserInfo/UserInfo.vue b/packages/design-system/src/components/N8nUserInfo/UserInfo.vue index a9c2d214c7..e6acb476ea 100644 --- a/packages/design-system/src/components/N8nUserInfo/UserInfo.vue +++ b/packages/design-system/src/components/N8nUserInfo/UserInfo.vue @@ -8,7 +8,7 @@ {{email}} Pending -
+
{{firstName}} {{lastName}} {{isCurrentUser ? this.t('nds.userInfo.you') : ''}}
@@ -26,10 +26,9 @@ import N8nText from '../N8nText'; import N8nAvatar from '../N8nAvatar'; import N8nBadge from '../N8nBadge'; import Locale from '../../mixins/locale'; -import { externalHooks } from '@/components/mixins/externalHooks'; import mixins from 'vue-typed-mixins'; -export default mixins(Locale, externalHooks).extend({ +export default mixins(Locale).extend({ name: 'n8n-users-info', components: { N8nAvatar, @@ -53,9 +52,6 @@ export default mixins(Locale, externalHooks).extend({ type: Boolean, }, }, - mounted() { - this.$externalHooks().run('userInfo.mounted', { userInfoRef: this.$refs.userInfo }); - } });