Skip to content

Commit

Permalink
Adjust some page titles to more accurately reflect what they do
Browse files Browse the repository at this point in the history
  • Loading branch information
big213 committed Apr 14, 2021
1 parent ac83ab1 commit 46ea458
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
14 changes: 11 additions & 3 deletions frontend/mixins/editRecordInterface.js
Original file line number Diff line number Diff line change
Expand Up @@ -316,9 +316,17 @@ export default {
// field unknown, abort
if (!fieldInfo) throw new Error('Unknown field: ' + fieldKey)

const fieldValue = fieldInfo.hidden
? null
: getNestedProperty(data, fieldKey)
let fieldValue

// if copy mode and fieldKey not in original fields, use default
if (this.mode === 'copy' && !fields.includes(fieldKey)) {
fieldValue = fieldInfo.default ? fieldInfo.default(this) : null
} else {
fieldValue = fieldInfo.hidden
? null
: getNestedProperty(data, fieldKey)
}

const inputObject = {
field: fieldKey.split(/\+/)[0],
fieldInfo,
Expand Down
4 changes: 2 additions & 2 deletions frontend/pages/my-follows.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ export default {
hiddenHeaders: ['user.id+user.name+user.avatar'],
// override
head: {
title: 'Following Me',
title: 'Following',
},
icon: 'mdi-account-switch',
title: 'Following Me',
title: 'Following',
}
},
computed: {
Expand Down
4 changes: 2 additions & 2 deletions frontend/pages/my-pb-feed.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ export default {
return {
recordInfo: PublicPbs,
head: {
title: 'PBs By Users I Follow',
title: 'My PB Feed',
},
hiddenFilters: ['isCurrent'],
title: 'PBs By Users I Follow',
title: 'My PB Feed',
icon: 'mdi-timetable',
}
},
Expand Down

0 comments on commit 46ea458

Please sign in to comment.