Skip to content
Snippets Groups Projects
Commit 2920a61a authored by chris's avatar chris
Browse files

short tool files

parent a4b6af7c
No related branches found
No related tags found
1 merge request!405Oen aside
......@@ -2,10 +2,10 @@ import { injectable } from 'inversify';
import Tools from '../lib/Tools';
@injectable()
export default class OENAsideTool extends Tools {
export default class OENAsideLongTool extends Tools {
title = '';
icon = '';
name = 'OENAsideTool';
name = 'OENAsideLongTool';
get run() {
return (state, dispatch, className) => {};
......
import { injectable } from 'inversify';
import Tools from '../lib/Tools';
@injectable()
export default class OENAsideShortTool extends Tools {
title = '';
icon = '';
name = 'OENAsideShortTool';
get run() {
return (state, dispatch, className) => {};
}
select = (state, activeViewId) => {
if (activeViewId !== 'main') return false;
return true;
};
get enable() {
return state => {
return true;
};
}
get active() {
return (state, OENToolsConfig) => {};
}
}
import { OenNodes } from 'wax-prosemirror-schema';
import Service from '../Service';
import OENContainersTool from './OENContainersTool';
import OENAsideTool from './OENAsideTool';
import OENAsideLongTool from './OENAsideLongTool';
import OENAsideShortTool from './OENAsideShortTool';
import './oenContainers.css';
class OENContainersService extends Service {
......@@ -9,7 +10,9 @@ class OENContainersService extends Service {
register() {
this.container.bind('OENContainersTool').to(OENContainersTool);
this.container.bind('OENAsideTool').to(OENAsideTool);
this.container.bind('OENAsideLongTool').to(OENAsideLongTool);
this.container.bind('OENAsideShortTool').to(OENAsideShortTool);
const createNode = this.container.get('CreateNode');
Object.keys(OenNodes).forEach(node => {
......
......@@ -8,9 +8,9 @@ class OENAsideLongToolGroup extends ToolGroup {
tools = [];
title = (<LeftMenuTitle title="Long Boxes" />);
constructor(@inject('OENAsideTool') OENAsideTool) {
constructor(@inject('OENAsideLongTool') OENAsideLongTool) {
super();
this.tools = [OENAsideTool];
this.tools = [OENAsideLongTool];
}
}
......
......@@ -8,9 +8,9 @@ class OENAsideShortToolGroup extends ToolGroup {
tools = [];
title = (<LeftMenuTitle title="Short Boxes" />);
constructor(@inject('OENAsideTool') OENAsideTool) {
constructor(@inject('OENAsideShortTool') OENAsideShortTool) {
super();
this.tools = [OENAsideTool];
this.tools = [OENAsideShortTool];
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment