Skip to content

Commit b6fee52

Browse files
committed
Hide scenarios from menu and change ercole version
1 parent c7aa311 commit b6fee52

File tree

3 files changed

+59
-59
lines changed

3 files changed

+59
-59
lines changed

src/components/Header.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ export default {
146146
title: 'Ercole Version',
147147
message: `
148148
<p class="has-text-weight-bold">Server Version: <span class="has-text-weight-normal">${this.version}</span></p>
149-
<p class="has-text-weight-bold">Web Version: <span class="has-text-weight-normal">2.53.0</span></p>
149+
<p class="has-text-weight-bold">Web Version: <span class="has-text-weight-normal">2.54.1</span></p>
150150
`,
151151
cancelButton: false,
152152
type: 'is-success',

src/components/Menu.vue

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -550,28 +550,28 @@ export default {
550550
attributes: { 'data-cy': 'mn-troubleshooting' },
551551
hidden: this.checkMenu('Troubleshooting', ''),
552552
},
553-
{
554-
title: 'Scenarios',
555-
icon: 'fa-solid fa-code-compare',
556-
attributes: { 'data-cy': 'mn-scenarios' },
557-
hidden: this.checkMenu('Scenarios', ''),
558-
child: [
559-
{
560-
href: { name: 'create-scenarios' },
561-
title: 'Create Scenarios',
562-
icon: 'fas fa-plus',
563-
attributes: { 'data-cy': 'mn-create-scenarios' },
564-
hidden: this.checkMenu('Create scenario', 'Scenarios'),
565-
},
566-
{
567-
href: { name: 'list-scenarios' },
568-
title: 'List Scenarios',
569-
icon: 'fas fa-list',
570-
attributes: { 'data-cy': 'mn-list-scenarios' },
571-
hidden: this.checkMenu('Create scenario', 'Scenarios'),
572-
},
573-
],
574-
},
553+
// {
554+
// title: 'Scenarios',
555+
// icon: 'fa-solid fa-code-compare',
556+
// attributes: { 'data-cy': 'mn-scenarios' },
557+
// hidden: this.checkMenu('Scenarios', ''),
558+
// child: [
559+
// {
560+
// href: { name: 'create-scenarios' },
561+
// title: 'Create Scenarios',
562+
// icon: 'fas fa-plus',
563+
// attributes: { 'data-cy': 'mn-create-scenarios' },
564+
// hidden: this.checkMenu('Create scenario', 'Scenarios'),
565+
// },
566+
// {
567+
// href: { name: 'list-scenarios' },
568+
// title: 'List Scenarios',
569+
// icon: 'fas fa-list',
570+
// attributes: { 'data-cy': 'mn-list-scenarios' },
571+
// hidden: this.checkMenu('Create scenario', 'Scenarios'),
572+
// },
573+
// ],
574+
// },
575575
]
576576
},
577577
},

src/router/index.js

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -926,42 +926,42 @@ const routes = [
926926
},
927927
beforeEnter: verifyAuth,
928928
},
929-
{
930-
path: '/scenarios/create',
931-
name: 'create-scenarios',
932-
component: lazyRouteBuilder('scenarios/Create.vue'),
933-
meta: {
934-
label: 'Create Scenarios',
935-
title: `${title}Create Scenarios`,
936-
breadcrumb: [{ name: 'Scenarios' }, { name: 'Create' }],
937-
},
938-
beforeEnter: verifyAuth,
939-
},
940-
{
941-
path: '/scenarios/list',
942-
name: 'list-scenarios',
943-
component: lazyRouteBuilder('scenarios/List.vue'),
944-
meta: {
945-
label: 'List Scenarios',
946-
title: `${title}List Scenarios`,
947-
breadcrumb: [{ name: 'Scenarios' }, { name: 'List' }],
948-
},
949-
beforeEnter: verifyAuth,
950-
},
951-
{
952-
path: '/scenarios/details/:scenario/:id',
953-
name: 'details-scenarios',
954-
component: lazyRouteBuilder('scenarios/Details.vue'),
955-
meta: {
956-
label: 'Details Scenarios',
957-
title: `${title}Details Scenarios`,
958-
breadcrumb: [
959-
{ name: 'Scenarios', link: '/scenarios/list' },
960-
{ name: '' },
961-
],
962-
},
963-
beforeEnter: verifyAuth,
964-
},
929+
// {
930+
// path: '/scenarios/create',
931+
// name: 'create-scenarios',
932+
// component: lazyRouteBuilder('scenarios/Create.vue'),
933+
// meta: {
934+
// label: 'Create Scenarios',
935+
// title: `${title}Create Scenarios`,
936+
// breadcrumb: [{ name: 'Scenarios' }, { name: 'Create' }],
937+
// },
938+
// beforeEnter: verifyAuth,
939+
// },
940+
// {
941+
// path: '/scenarios/list',
942+
// name: 'list-scenarios',
943+
// component: lazyRouteBuilder('scenarios/List.vue'),
944+
// meta: {
945+
// label: 'List Scenarios',
946+
// title: `${title}List Scenarios`,
947+
// breadcrumb: [{ name: 'Scenarios' }, { name: 'List' }],
948+
// },
949+
// beforeEnter: verifyAuth,
950+
// },
951+
// {
952+
// path: '/scenarios/details/:scenario/:id',
953+
// name: 'details-scenarios',
954+
// component: lazyRouteBuilder('scenarios/Details.vue'),
955+
// meta: {
956+
// label: 'Details Scenarios',
957+
// title: `${title}Details Scenarios`,
958+
// breadcrumb: [
959+
// { name: 'Scenarios', link: '/scenarios/list' },
960+
// { name: '' },
961+
// ],
962+
// },
963+
// beforeEnter: verifyAuth,
964+
// },
965965
{
966966
path: '/users',
967967
name: 'users',

0 commit comments

Comments
 (0)