Skip to content

Commit

Permalink
Merge pull request #167 from webitel/refactor/return-start-page-compo…
Browse files Browse the repository at this point in the history
…nent

refactor: return startPageComponent
  • Loading branch information
Lera24 authored Nov 20, 2024
2 parents 2aba42a + 8d915fb commit 3aa9327
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 19 deletions.
15 changes: 6 additions & 9 deletions src/app/router/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,15 @@ const routes = [
{
path: '/',
name: 'crm-workspace',
redirect: { name: 'contacts' },
redirect: { name: 'the-start-page' },
component: TheCrmWorkspace,
beforeEnter: checkAppAccess,
children: [
// {
// path: 'start-page',
// name: 'the-start-page',
// component: TheStartPage,
// },
{
path: 'start-page',
name: 'the-start-page',
component: TheStartPage,
},
{
path: 'contacts',
name: CrmSections.CONTACTS,
Expand Down Expand Up @@ -127,9 +127,6 @@ const routes = [
},
],
},



],
},
{
Expand Down
20 changes: 10 additions & 10 deletions src/modules/start-page/components/the-start-page.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,16 @@ const nav = [
dark: ContactsImgDark,
},
},
// {
// value: 'configuration',
// route: '/configuration',
// name: t(`startPage.configuration.name`),
// text: t(`startPage.configuration.text`),
// images: {
// light: ConfigurationImgLight,
// dark: ConfigurationImgDark,
// },
// },
{
value: 'configuration',
route: '/configuration',
name: t(`startPage.configuration.name`),
text: t(`startPage.configuration.text`),
images: {
light: ConfigurationImgLight,
dark: ConfigurationImgDark,
},
},
];
</script>

Expand Down

0 comments on commit 3aa9327

Please sign in to comment.