From eb0143f4375d7dd95f53ad5fc8fb20a9835ca73d Mon Sep 17 00:00:00 2001 From: Louis Chemineau Date: Thu, 3 Oct 2024 15:02:44 +0200 Subject: [PATCH] fix: Vue app names This improves the debugging experience in the vue dev tool. Signed-off-by: Louis Chemineau --- .../src/components/SetCustomReminderModal.vue | 10 +++++----- core/src/components/ContactsMenu.js | 1 + core/src/components/UserMenu.js | 1 + 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/apps/files_reminders/src/components/SetCustomReminderModal.vue b/apps/files_reminders/src/components/SetCustomReminderModal.vue index 331dc17dbd543..8996c7222857e 100644 --- a/apps/files_reminders/src/components/SetCustomReminderModal.vue +++ b/apps/files_reminders/src/components/SetCustomReminderModal.vue @@ -93,16 +93,16 @@ export default Vue.extend({ }, computed: { - fileId(): number { - return this.node.fileid + fileId(): number|undefined { + return this.node?.fileid }, - fileName(): string { - return this.node.basename + fileName(): string|undefined { + return this.node?.basename }, name() { - return t('files_reminders', 'Set reminder for "{fileName}"', { fileName: this.fileName }) + return this.fileName ? t('files_reminders', 'Set reminder for "{fileName}"', { fileName: this.fileName }) : '' }, label(): string { diff --git a/core/src/components/ContactsMenu.js b/core/src/components/ContactsMenu.js index 5dd395da34c37..e07a699ab9fd3 100644 --- a/core/src/components/ContactsMenu.js +++ b/core/src/components/ContactsMenu.js @@ -15,6 +15,7 @@ export const setUp = () => { if (mountPoint) { // eslint-disable-next-line no-new new Vue({ + name: 'ContactsMenuRoot', el: mountPoint, render: h => h(ContactsMenu), }) diff --git a/core/src/components/UserMenu.js b/core/src/components/UserMenu.js index 37895bb616679..5c488f2341e1d 100644 --- a/core/src/components/UserMenu.js +++ b/core/src/components/UserMenu.js @@ -12,6 +12,7 @@ export const setUp = () => { if (mountPoint) { // eslint-disable-next-line no-new new Vue({ + name: 'AccountMenuRoot', el: mountPoint, render: h => h(AccountMenu), })