mirror of
https://github.com/FJurmanovic/wallet-web.git
synced 2026-02-06 14:18:08 +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:
@@ -136,7 +136,6 @@ class RouterService {
|
||||
}
|
||||
}
|
||||
|
||||
@update
|
||||
goBack() {
|
||||
if (!Array.isArray(this.historyStack)) this.historyStack = [];
|
||||
const lenHistory = this.historyStack.length;
|
||||
@@ -147,14 +146,15 @@ class RouterService {
|
||||
window.history.pushState({}, "", url.toString());
|
||||
this.historyStack.pop();
|
||||
}
|
||||
this.update();
|
||||
}
|
||||
|
||||
@update
|
||||
init() {
|
||||
window.addEventListener("popstate", () => {
|
||||
this.historyStack.pop();
|
||||
this.update();
|
||||
});
|
||||
this.update();
|
||||
}
|
||||
|
||||
findByPath() {
|
||||
|
||||
Reference in New Issue
Block a user