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.
 
 

16 lines
350 B

import * as TitlebarActions from '../../actions/board/titlebar.actions';
let dispatch;
let model;
const TitlebarCtrl = {
setDispatch: d => dispatch = d,
setModel: m => model = m,
setTitle: (level) => {
const title = model.getTitle(level);
dispatch(TitlebarActions.update(title));
}
};
export default TitlebarCtrl;