Dashboard: no buttons next to the heading

The Server config and Add peer buttons are gone from the Dashboard
heading. Server is in the sidebar, Add peer is on the Peers page, and
with no peers yet the Peers card still links to adding the first one.
This commit is contained in:
Daniel Redetzke
2026-10-05 23:41:27 +03:00
parent f60909edf5
commit de820ae06f
+1 -4
View File
@@ -1063,10 +1063,7 @@
fill(wrap,
h('div', { class: 'head' },
h('div', null, h('h1', null, 'Dashboard'),
h('p', { class: 'sub' }, 'Endpoint ', h('span', { class: 'mono' }, st.endpoint), ' · network ', h('span', { class: 'mono' }, st.ipv4))),
h('div', { class: 'actions' },
h('a', { class: 'btn', href: '#/server' }, 'Server config'),
h('a', { class: 'btn primary', href: '#/peers/new' }, icon('plus', 16, 2), 'Add peer'))),
h('p', { class: 'sub' }, 'Endpoint ', h('span', { class: 'mono' }, st.endpoint), ' · network ', h('span', { class: 'mono' }, st.ipv4)))),
failing.length ? h('div', { class: 'notice err', role: 'alert' },
h('div', null, h('strong', null, 'Needs attention: '), failing.map((c) => c.name + ' (' + c.detail + ')').join(' · ')),