Skip to content

Commit

Permalink
client,webserver: Hide Settings link when user un-authed
Browse files Browse the repository at this point in the history
	- Also replaced the deleted Doc.bind 'Add Dex'
  • Loading branch information
dev-warrior777 committed Nov 27, 2024
1 parent 5863025 commit 5d87755
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion client/webserver/site/src/html/bodybuilder.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
<span class="ico-barchart fs16 me-2"></span>
[[[Market Making]]]
</a>
<a href="/settings" class="demi hoverbright plainlink d-flex align-items-center py-1">
<a href="/settings" class="demi hoverbright plainlink d-flex align-items-center py-1 authed-only">
<span class="ico-settings fs16 me-2"></span>
[[[Settings]]]
</a>
Expand Down
5 changes: 5 additions & 0 deletions client/webserver/site/src/js/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ export default class SettingsPage extends BasePage {
app().showPopups = show
})

Doc.bind(page.addADex, 'click', () => {
this.dexAddrForm.refresh()
this.showForm(page.dexAddrForm)
})

this.fiatRateSources.forEach(src => {
Doc.bind(src, 'change', async () => {
const res = await postJSON('/api/toggleratesource', {
Expand Down

0 comments on commit 5d87755

Please sign in to comment.