Skip to content

Commit

Permalink
Add multiTab route (#948)
Browse files Browse the repository at this point in the history
  • Loading branch information
yamelsenih authored Jun 28, 2021
1 parent 65d5ff1 commit 166fc17
Show file tree
Hide file tree
Showing 3 changed files with 30,969 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/router/modules/ADempiere/testRoutes.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,23 @@ const testRoutes = [
]
},

{
path: '/test/multitab/window',
component: Layout,
hidden: true,
children: [
{
path: '/test/multitab/window',
component: () => import('@/views/ADempiere/Test/MultiTabWindow'),
name: 'Multi Tab Window View',
meta: {
title: 'Multi Tab Window View',
isIndex: true
}
}
]
},

{
path: '/test/process/standard',
component: Layout,
Expand Down
48 changes: 48 additions & 0 deletions src/views/ADempiere/Test/MultiTabWindow/index.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<!--
ADempiere-Vue (Frontend) for ADempiere ERP & CRM Smart Business Solution
Copyright (C) 2017-Present E.R.P. Consultores y Asociados, C.A.
Contributor(s): Yamel Senih [email protected] www.erpya.com
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https:www.gnu.org/licenses/>.
-->

<template>
<component
:is="WindowView"
:uuid="uuid"
:metadata="metadata"
/>
</template>

<script>
import { defineComponent } from '@vue/composition-api'
import WindowView from '@/views/ADempiere/WindowView'
import multiTabMetadata from './multiTabWindow.json'
export default defineComponent({
name: 'TestWindowView',
setup() {
// Business Partner
const uuid = 'a520de12-fb40-11e8-a479-7a0060f0aa01'
const metadata = multiTabMetadata.result
return {
WindowView,
metadata,
uuid
}
}
})
</script>
Loading

0 comments on commit 166fc17

Please sign in to comment.