Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit e074979

Browse files
committed
webui: Rename user "Settings" page back to "Preferences"
It was just too weird having two different "Settings" pages when looking at databases.
1 parent e937fce commit e074979

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

webui/jsx/auth.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export default function Auth() {
2626
 
2727
{updates}
2828
 
29-
<a href="/pref" style={{color: "black", verticalAlign: "middle"}}>Settings</a> | <a href={"/" + authInfo.loggedInUser} style={{color: "black", verticalAlign: "middle"}}>Home</a> | <a href="/logout" style={{color: "black", verticalAlign: "middle"}}>Log out</a>
29+
<a href="/pref" style={{color: "black", verticalAlign: "middle"}}>Preferences</a> | <a href={"/" + authInfo.loggedInUser} style={{color: "black", verticalAlign: "middle"}}>Home</a> | <a href="/logout" style={{color: "black", verticalAlign: "middle"}}>Log out</a>
3030
</>
3131
);
3232
} else {

webui/pages.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1487,7 +1487,7 @@ func prefPage(w http.ResponseWriter, r *http.Request, loggedInUser string) {
14871487
MaxRows int
14881488
PageMeta PageMetaInfo
14891489
}
1490-
pageData.PageMeta.Title = "Settings"
1490+
pageData.PageMeta.Title = "Preferences"
14911491
errCode, err := collectPageMetaInfo(r, &pageData.PageMeta)
14921492
if err != nil {
14931493
errorPage(w, r, errCode, err.Error())

webui/templates/preferences.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
&nbsp;
1111
</div>
1212
<div class="col-md-6">
13-
<h2 style="text-align: center;">Settings</h2>
13+
<h2 style="text-align: center;">Preferences</h2>
1414
<h3 style="text-align: center;">Used when uploading databases</h3>
1515
<form action="/pref" method="post">
1616
<table class="table table-striped table-responsive settingsTable">
@@ -52,7 +52,6 @@ <h3 style="text-align: center;"><a href="https://sqlitebrowser.org/" target="_bl
5252
<hr />
5353

5454
<h3 style="text-align: center;"><a href="https://api.dbhub.io" target="_blank">API keys</a></h3>
55-
<div style="text-align: center; font-style: italic; font-size: large;">(In early development, but you're welcome to use it.)</div>
5655
<table class="table table-striped table-responsive settingsTable" style="margin-bottom: 20px;" data-cy="apikeystbl">
5756
<tr>
5857
<th>Key</th>

0 commit comments

Comments
 (0)