From cd8275fc2e451e9906937fc3b741a5a665212379 Mon Sep 17 00:00:00 2001 From: Ev Bogue Date: Wed, 22 May 2019 13:35:53 -0500 Subject: render new identity without page reload, remove sync button --- views.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/views.js b/views.js index 052ced7..292c154 100644 --- a/views.js +++ b/views.js @@ -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 () { -- cgit v1.2.3-70-g09d2