diff options
author | Ev Bogue <ev@evbogue.com> | 2019-05-22 13:35:53 -0500 |
---|---|---|
committer | Ev Bogue <ev@evbogue.com> | 2019-05-22 13:35:53 -0500 |
commit | cd8275fc2e451e9906937fc3b741a5a665212379 (patch) | |
tree | 142706b526e691962e432ebbf08b91c4d1c30d52 | |
parent | 28e2fc486558f45b6b62ba1216e69314ec2bb07e (diff) |
render new identity without page reload, remove sync button
-rw-r--r-- | views.js | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -25,16 +25,21 @@ function profilePage (src, keys) { name: input.value } - publish(content, keys).then(function () {location.reload()}) + publish(content, keys).then(post => { + open(post).then(msg => { + input.value = '' + scroller.insertBefore(render(msg, keys), scroller.childNodes[1]) + }) + }) } }, ['Identify']) ])) - profile.appendChild(h('button', { + /*profile.appendChild(h('button', { onclick: function () { sync(src, keys) } - }, ['Sync feed'])) + }, ['Sync feed']))*/ profile.appendChild(h('button', { onclick: function () { |