mirror of
https://github.com/FJurmanovic/wallet-web.git
synced 2026-02-06 06:08:10 +00:00
multiple changes
WW-26 - render and update methods are now arrow functions WW-18 - created history page for listing transactions WW-12 - list wallets on menu
This commit is contained in:
@@ -44,22 +44,11 @@ class HomePageElement extends HTMLElement {
|
||||
}
|
||||
};
|
||||
|
||||
render() {
|
||||
render = () => {
|
||||
return html`
|
||||
<app-link data-to="/" data-title="Main"></app-link> |
|
||||
${this.appMain.isAuth
|
||||
? html`<app-link data-to="/home" data-title="Home"></app-link>
|
||||
|<app-link
|
||||
data-to="/logout"
|
||||
data-title="Logout"
|
||||
></app-link>`
|
||||
: html`<app-link
|
||||
data-to="/login"
|
||||
data-title="Login"
|
||||
></app-link>`}
|
||||
<button data-action="click:home-page#openModal">Test</button>
|
||||
`;
|
||||
}
|
||||
};
|
||||
|
||||
update = () => {
|
||||
render(this.render(), this);
|
||||
|
||||
Reference in New Issue
Block a user