Skip to content

Commit 5555e5d

Browse files
committed
More human navigation guard errors
1 parent b83b3f1 commit 5555e5d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/router.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const routes = [
3737
},
3838
beforeEnter: () => {
3939
if (isBingoCardSet.value) {
40-
setError('You cannot access that page once a bingo card has been generated. You have been redirected.');
40+
setError('You cannot access the Category List page once a bingo card has been generated. You have been redirected.');
4141
return '/bingo';
4242
}
4343
}
@@ -46,11 +46,11 @@ const routes = [
4646
path: '/settings',
4747
component: GameSettings,
4848
meta: {
49-
title: 'Game Settings - Backlog Bingo'
49+
title: 'Settings - Backlog Bingo'
5050
},
5151
beforeEnter: () => {
5252
if (!isCategoryListSet.value && !isBingoCardSet.value) {
53-
setError('You cannot access that page without first defining a category list or bingo card. You have been redirected to do so now.');
53+
setError('You cannot access the Settings page without first setting a category list or bingo card. You have been redirected to do so now.');
5454
return '/list';
5555
}
5656
}
@@ -63,11 +63,11 @@ const routes = [
6363
},
6464
beforeEnter: () => {
6565
if (!isCategoryListSet.value) {
66-
setError('You cannot access that page without first defining a category list. You have been redirected to do so now.');
66+
setError('You cannot access the Refine Categories page without first setting a category list. You have been redirected to do so now.');
6767
return '/list';
6868
}
6969
if (isBingoCardSet.value) {
70-
setError('You cannot access that page once a bingo card has been generated. You have been redirected.');
70+
setError('You cannot access the Refine Categories page once a bingo card has been generated. You have been redirected.');
7171
return '/bingo';
7272
}
7373
}
@@ -80,7 +80,7 @@ const routes = [
8080
},
8181
beforeEnter: () => {
8282
if (!isBingoCardSet.value) {
83-
setError('You cannot access that page without first generating a bingo card. You have been redirected to do so now.');
83+
setError('You cannot access the Bingo Card page without first generating a bingo card. You have been redirected to do so now.');
8484
if (!isCategoryListSet.value) {
8585
return '/list';
8686
} else {

0 commit comments

Comments
 (0)