Adjust spacing. Add Todo
This commit is contained in:
parent
496c132b82
commit
819d53e7b3
|
@ -4,3 +4,6 @@ This project is a javascript prototype for the DGF system.
|
||||||
|
|
||||||
It implements the core algorithm described in [Craig Calcaterra (May 24, 2018) On-Chain Governance of Decentralized Autonomous Organizations](http://dx.doi.org/10.2139/ssrn.3188374).
|
It implements the core algorithm described in [Craig Calcaterra (May 24, 2018) On-Chain Governance of Decentralized Autonomous Organizations](http://dx.doi.org/10.2139/ssrn.3188374).
|
||||||
|
|
||||||
|
# TODO
|
||||||
|
|
||||||
|
- Move `actor.js` and `action.js` out of `display/`. To `supporting`?
|
|
@ -28,7 +28,9 @@ export class Button extends FormElement {
|
||||||
this.button.disabled = !!opts.disabled;
|
this.button.disabled = !!opts.disabled;
|
||||||
if (opts.label) {
|
if (opts.label) {
|
||||||
this.label = document.createElement('label');
|
this.label = document.createElement('label');
|
||||||
this.label.innerHTML = opts.label;
|
this.labelDiv = document.createElement('div');
|
||||||
|
this.labelDiv.innerHTML = opts.label;
|
||||||
|
this.label.appendChild(this.labelDiv);
|
||||||
this.label.appendChild(this.button);
|
this.label.appendChild(this.button);
|
||||||
this.el.appendChild(this.label);
|
this.el.appendChild(this.label);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -71,7 +71,6 @@ export class Vertex {
|
||||||
}
|
}
|
||||||
|
|
||||||
static prepareEditorDocument(graph, doc, vertexId) {
|
static prepareEditorDocument(graph, doc, vertexId) {
|
||||||
doc.clear();
|
|
||||||
const vertex = vertexId ? graph.getVertex(vertexId) : undefined;
|
const vertex = vertexId ? graph.getVertex(vertexId) : undefined;
|
||||||
const form = doc.form().lastElement;
|
const form = doc.form().lastElement;
|
||||||
doc.remark(`<h3>${vertex ? 'Edit' : 'Add'} Vertex</h3>`, { parentEl: form.el });
|
doc.remark(`<h3>${vertex ? 'Edit' : 'Add'} Vertex</h3>`, { parentEl: form.el });
|
||||||
|
|
Loading…
Reference in New Issue