]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix: Vue app names
authorLouis Chemineau <louis@chmn.me>
Thu, 3 Oct 2024 13:02:44 +0000 (15:02 +0200)
committerLouis <louis@chmn.me>
Wed, 9 Oct 2024 17:49:07 +0000 (19:49 +0200)
This improves the debugging experience in the vue dev tool.

Signed-off-by: Louis Chemineau <louis@chmn.me>
apps/files_reminders/src/components/SetCustomReminderModal.vue
core/src/components/ContactsMenu.js
core/src/components/UserMenu.js

index 331dc17dbd543ab70ef6a45bf78a702d2233baf3..8996c7222857e343d5bb0b55161a94f720a35964 100644 (file)
@@ -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 {
index 5dd395da34c373c4671c8a3c9c633fac1c3c236a..e07a699ab9fd3bf4ab1ad993a4e14a2f0bda32ed 100644 (file)
@@ -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),
                })
index 37895bb616679efc00516997ea5c954396361de5..5c488f2341e1df5dfe6ce59ed5bc7a3baab08379 100644 (file)
@@ -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),
                })