You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
399 B
34 lines
399 B
3 years ago
|
/**
|
||
|
*
|
||
|
*
|
||
|
*
|
||
|
* @author Björn Hase
|
||
|
*
|
||
|
*
|
||
|
*/
|
||
|
|
||
|
import observable from '@riotjs/observable'
|
||
|
|
||
|
export default observable(
|
||
|
{
|
||
|
/**
|
||
|
*
|
||
|
* @param {object} data
|
||
|
*
|
||
|
*/
|
||
|
toggle(data)
|
||
|
{
|
||
|
this.trigger('toggle-form')
|
||
|
},
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
* @param {object} data
|
||
|
*
|
||
|
*/
|
||
|
edit(data)
|
||
|
{
|
||
|
this.trigger('edit-form', data)
|
||
|
}
|
||
|
|
||
|
})
|