Skip to content

Commit

Permalink
Internally rename modalParams to modalConfig
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Hotze <[email protected]>
  • Loading branch information
florian-h05 committed Sep 26, 2023
1 parent 0449622 commit 885e363
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default {
'oh-plan-page': () => import('@/components/widgets/plan/oh-plan-page.vue'),
'oh-chart-page': () => import('@/components/widgets/chart/oh-chart-page.vue')
},
props: ['uid', 'el', 'modalParams'],
props: ['uid', 'el', 'modalConfig'],
data () {
return {
currentTab: 0,
Expand All @@ -22,7 +22,7 @@ export default {
component: component,
root: component,
store: this.$store.getters.trackedItems,
props: this.modalParams,
props: this.modalConfig,
vars: this.vars
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ export const actionsMixin = {
const actionModal = actionConfig[prefix + 'actionModal']
const actionModalConfig = actionConfig[prefix + 'actionModalConfig']
if (actionModal.indexOf('page:') !== 0 && actionModal.indexOf('widget:') !== 0 && actionModal.indexOf('oh-') !== 0) {
console.log('Action target is not of the format page:uid or widget:uid')
console.log('Action target is not of the format page:uid or widget:uid or oh-')
return
}

Expand All @@ -196,7 +196,7 @@ export const actionsMixin = {
props: {
uid: actionModal,
el: (evt && evt.target && evt.target._icon) ? evt.target._icon : (evt) ? evt.target : null,
modalParams: actionModalConfig || {}
modalConfig: actionModalConfig || {}
}
}
this.$f7.views.main.router.navigate(modalRoute, modalProps)
Expand Down

0 comments on commit 885e363

Please sign in to comment.