RC-2: correct navigation pages configs with auth user role
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
import i18next from 'i18next';
|
import i18next from 'i18next';
|
||||||
|
|
||||||
|
import { authRoles } from 'src/app/auth';
|
||||||
import Dashboard from './Dashboard';
|
import Dashboard from './Dashboard';
|
||||||
import en from './i18n/en';
|
import en from './i18n/en';
|
||||||
|
|
||||||
@@ -11,6 +12,7 @@ const DashboardConfig = {
|
|||||||
config: {},
|
config: {},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
auth: authRoles.user,
|
||||||
routes: [
|
routes: [
|
||||||
{
|
{
|
||||||
path: 'dashboard',
|
path: 'dashboard',
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
import i18next from 'i18next';
|
import i18next from 'i18next';
|
||||||
|
|
||||||
import en from './i18n/en';
|
import { authRoles } from 'src/app/auth';
|
||||||
import Favorites from './Favorites';
|
import Favorites from './Favorites';
|
||||||
|
import en from './i18n/en';
|
||||||
|
|
||||||
i18next.addResourceBundle('en', 'favoritesPage', en);
|
i18next.addResourceBundle('en', 'favoritesPage', en);
|
||||||
|
|
||||||
@@ -11,6 +12,7 @@ const FavoritesConfig = {
|
|||||||
config: {},
|
config: {},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
auth: authRoles.user,
|
||||||
routes: [
|
routes: [
|
||||||
{
|
{
|
||||||
path: 'favorites',
|
path: 'favorites',
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
import i18next from 'i18next';
|
import i18next from 'i18next';
|
||||||
|
|
||||||
import en from './i18n/en';
|
import { authRoles } from 'src/app/auth';
|
||||||
import History from './History';
|
import History from './History';
|
||||||
|
import en from './i18n/en';
|
||||||
|
|
||||||
i18next.addResourceBundle('en', 'historyPage', en);
|
i18next.addResourceBundle('en', 'historyPage', en);
|
||||||
|
|
||||||
@@ -11,6 +12,7 @@ const HistoryConfig = {
|
|||||||
config: {},
|
config: {},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
auth: authRoles.user,
|
||||||
routes: [
|
routes: [
|
||||||
{
|
{
|
||||||
path: 'history',
|
path: 'history',
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
import i18next from 'i18next';
|
import i18next from 'i18next';
|
||||||
|
|
||||||
|
import { authRoles } from 'src/app/auth';
|
||||||
import en from './i18n/en';
|
import en from './i18n/en';
|
||||||
import Profile from './Profile';
|
import Profile from './Profile';
|
||||||
|
|
||||||
@@ -11,6 +12,7 @@ const ProfileConfig = {
|
|||||||
config: {},
|
config: {},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
auth: authRoles.user,
|
||||||
routes: [
|
routes: [
|
||||||
{
|
{
|
||||||
path: 'profile',
|
path: 'profile',
|
||||||
|
|||||||
Reference in New Issue
Block a user