Commit 1c5ff3d1 authored by scmoritz's avatar scmoritz
Browse files

Remove "static" in company views

parent 56e36e6b
......@@ -2,21 +2,21 @@ import m from 'mithril';
import load from '../../models/companies';
export default class companyDetail {
static oninit(vnode) {
oninit(vnode) {
this.content = '';
load(vnode.attrs.companyId).then(response => {
this.content = response;
});
}
static onbeforeupdate(vnode) {
onbeforeupdate(vnode) {
// load markdown whenever component is reloaded
load(vnode.attrs.companyId).then(response => {
this.content = response;
});
}
static view() {
view() {
return m.trust(this.content);
}
}
......@@ -2,14 +2,14 @@ import m from 'mithril';
import load from '../../models/companies';
export default class companyList {
static oninit() {
oninit() {
this.content = '';
load('list').then(response => {
this.content = response;
});
}
static view() {
view() {
return m.trust(this.content);
}
}
Supports Markdown
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