Skip to content

Commit ed2f563

Browse files
pkp/pkp-lib#10670 Clean up 'back menu' as we always show the menu
1 parent 108e93b commit ed2f563

File tree

1 file changed

+1
-45
lines changed

1 file changed

+1
-45
lines changed

src/components/Container/Page.vue

Lines changed: 1 addition & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -45,51 +45,7 @@ export default {
4545
unreadTasksCount: 0,
4646
};
4747
},
48-
computed: {
49-
/**
50-
* The menu item entry for a back-to-dashboard link
51-
*
52-
* @return {Object|null}
53-
*/
54-
backToDashboardLink() {
55-
if (this.useBackToDashboard) {
56-
return this.menu[Object.keys(this.menu)[0]];
57-
}
58-
return null;
59-
},
60-
61-
/**
62-
* The new label for the back-to-dashboard link
63-
*
64-
* Converts "Submissions" to "Back to Submissions"
65-
*
66-
* @return {String}
67-
*/
68-
backToDashboardLabel() {
69-
if (this.backToDashboardLink) {
70-
return this.t('navigation.backTo', {
71-
page: this.backToDashboardLink.name,
72-
});
73-
}
74-
return null;
75-
},
76-
77-
/**
78-
* Should a back-to-dashboard link be shown instead of a
79-
* full navigation menu?
80-
*
81-
* This is the case when the nav menu contains only one link.
82-
*
83-
* @return {Boolean}
84-
*/
85-
useBackToDashboard() {
86-
return (
87-
!!this.menu &&
88-
Object.keys(this.menu).length === 1 &&
89-
!this.menu[Object.keys(this.menu)[0]].isCurrent
90-
);
91-
},
92-
},
48+
computed: {},
9349
mounted() {
9450
/**
9551
* Fire a callback when the URL #hash is changed

0 commit comments

Comments
 (0)