2017-10-21 15:58:02 +09:00
|
|
|
import React from 'react';
|
|
|
|
import { registerComponent, Components } from 'meteor/vulcan:lib';
|
|
|
|
import Callbacks from '../modules/callbacks/collection.js';
|
|
|
|
|
|
|
|
const CallbacksName = ({ document }) =>
|
|
|
|
<strong>{document.name}</strong>
|
|
|
|
|
|
|
|
const CallbacksDashboard = props =>
|
|
|
|
<div className="settings">
|
|
|
|
<Components.Datatable
|
|
|
|
showSearch={false}
|
|
|
|
showEdit={false}
|
|
|
|
collection={Callbacks}
|
|
|
|
options={{
|
|
|
|
fragmentName: 'CallbacksFragment'
|
|
|
|
}}
|
|
|
|
columns={[
|
|
|
|
{ name: 'name', component: CallbacksName },
|
2018-06-15 10:18:20 +09:00
|
|
|
'iterator',
|
|
|
|
'properties',
|
2017-10-21 15:58:02 +09:00
|
|
|
'runs',
|
|
|
|
'description',
|
|
|
|
'hooks',
|
|
|
|
]}
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
registerComponent('Callbacks', CallbacksDashboard);
|
|
|
|
|
|
|
|
export default Callbacks;
|