Skip to content

Commit 5d87755

Browse files
author
dev-warrior777
committed
client,webserver: Hide Settings link when user un-authed
- Also replaced the deleted Doc.bind 'Add Dex'
1 parent 5863025 commit 5d87755

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

client/webserver/site/src/html/bodybuilder.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
<span class="ico-barchart fs16 me-2"></span>
9898
[[[Market Making]]]
9999
</a>
100-
<a href="/settings" class="demi hoverbright plainlink d-flex align-items-center py-1">
100+
<a href="/settings" class="demi hoverbright plainlink d-flex align-items-center py-1 authed-only">
101101
<span class="ico-settings fs16 me-2"></span>
102102
[[[Settings]]]
103103
</a>

client/webserver/site/src/js/settings.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,11 @@ export default class SettingsPage extends BasePage {
6161
app().showPopups = show
6262
})
6363

64+
Doc.bind(page.addADex, 'click', () => {
65+
this.dexAddrForm.refresh()
66+
this.showForm(page.dexAddrForm)
67+
})
68+
6469
this.fiatRateSources.forEach(src => {
6570
Doc.bind(src, 'change', async () => {
6671
const res = await postJSON('/api/toggleratesource', {

0 commit comments

Comments
 (0)