Adjust spacing. Add Todo

This commit is contained in:
Ladd Hoffman 2023-07-11 15:04:33 -05:00
parent 496c132b82
commit 819d53e7b3
3 changed files with 6 additions and 2 deletions

View File

@ -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).
# TODO
- Move `actor.js` and `action.js` out of `display/`. To `supporting`?

View File

@ -28,7 +28,9 @@ export class Button extends FormElement {
this.button.disabled = !!opts.disabled;
if (opts.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.el.appendChild(this.label);
} else {

View File

@ -71,7 +71,6 @@ export class Vertex {
}
static prepareEditorDocument(graph, doc, vertexId) {
doc.clear();
const vertex = vertexId ? graph.getVertex(vertexId) : undefined;
const form = doc.form().lastElement;
doc.remark(`<h3>${vertex ? 'Edit' : 'Add'} Vertex</h3>`, { parentEl: form.el });