mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 07:03:49 +00:00
otf: add data attributes and pass them in vue component
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
<template>
|
||||
<on-the-fly
|
||||
action="action"
|
||||
:type="type"
|
||||
:id="id"
|
||||
:type="context.type"
|
||||
:id="context.id"
|
||||
:action="context.action"
|
||||
:buttonText="options.buttonText"
|
||||
@saveFormOnTheFly="saveFormOnTheFly">
|
||||
</on-the-fly>
|
||||
</template>
|
||||
@@ -22,16 +23,6 @@ export default {
|
||||
},
|
||||
options() {
|
||||
return this.onTheFly.options;
|
||||
},
|
||||
// temp
|
||||
action() {
|
||||
return 'show'; // 'edit', 'create'
|
||||
},
|
||||
type() {
|
||||
return 'person'; // 'thirdparty'
|
||||
},
|
||||
id() {
|
||||
return 1613
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
|
Reference in New Issue
Block a user