chore: use long variable name
This commit is contained in:
parent
d90458c17a
commit
5702781b6b
|
@ -1,14 +1,14 @@
|
|||
import {i18n} from '@/i18n'
|
||||
import type {IProject} from '@/modelTypes/IProject'
|
||||
|
||||
export function getProjectTitle(p: IProject) {
|
||||
if (p.id === -1) {
|
||||
export function getProjectTitle(project: IProject) {
|
||||
if (project.id === -1) {
|
||||
return i18n.global.t('project.pseudo.favorites.title')
|
||||
}
|
||||
|
||||
if (p.title === 'Inbox') {
|
||||
if (project.title === 'Inbox') {
|
||||
return i18n.global.t('project.inboxTitle')
|
||||
}
|
||||
|
||||
return p.title
|
||||
return project.title
|
||||
}
|
||||
|
|
Reference in New Issue
Block a user