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

Commit bc54f8d

Browse files
committed
webui: Improve the usability of some header items
This is as per issue #200, but there are further pieces that still need working on.
1 parent 49499ed commit bc54f8d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

cypress/e2e/1-webui/diff.cy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ describe('diff databases', () => {
1919

2020
// Diff between two databases with just a simple schema change (view creation)
2121
it('schema change only diff', () => {
22-
cy.visit('https://localhost:9443/branches/default/Assembly%20Election%202017.sqlite')
22+
cy.visit('/branches/default/Assembly%20Election%202017.sqlite')
2323
cy.get('[data-cy="comparebtn"]').click()
2424
cy.get('[data-cy="objname"]').should('have.text', 'Candidate_Names')
2525
cy.get('[data-cy="objtype"]').should('have.text', 'view')

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"}}>Preferences</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={"/" + authInfo.loggedInUser} style={{color: "black", verticalAlign: "middle"}}>Home</a> | <a href="/pref" style={{color: "black", verticalAlign: "middle"}}>Preferences</a> | <a href="/logout" style={{color: "black", verticalAlign: "middle"}}>Log out</a>
3030
</>
3131
);
3232
} else {

webui/templates/header.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<div class="row" style="padding-top: 8px;">
44
<div id="logo" class="col-md-6">
55
<div class="pull-left">
6-
<a href="/"><img src="/images/sqlitebrowser.svg" height="25"/></a>
6+
<a href="/[[ .PageMeta.LoggedInUser ]]"><img src="/images/sqlitebrowser.svg" height="25"/></a>
77
<span style="font-size: larger; vertical-align: bottom;">DBHub.io</span>
88
</div>
99
</div>

0 commit comments

Comments
 (0)