mirror of
https://github.com/nextcloud/server.git
synced 2026-02-25 19:04:38 -05:00
fix: Vue app names
This improves the debugging experience in the vue dev tool. Signed-off-by: Louis Chemineau <louis@chmn.me>
This commit is contained in:
parent
43b1fd7bb8
commit
c0e5635ade
3 changed files with 7 additions and 5 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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),
|
||||
})
|
||||
|
|
|
|||
|
|
@ -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),
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue