@kris701/ez-ui 1.4.3 → 1.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -6837,6 +6837,11 @@ class BaseListInterface {
|
|
|
6837
6837
|
constructor(http) {
|
|
6838
6838
|
this.http = http;
|
|
6839
6839
|
}
|
|
6840
|
+
async Init() {
|
|
6841
|
+
if (!this.isLoading && this.canGetAll && this.items().length == 0) {
|
|
6842
|
+
await this.Load();
|
|
6843
|
+
}
|
|
6844
|
+
}
|
|
6840
6845
|
async Load() {
|
|
6841
6846
|
if (!this.isLoading && this.canGetAll) {
|
|
6842
6847
|
this.isLoaded = false;
|
|
@@ -7073,7 +7078,6 @@ class EzUISideBar {
|
|
|
7073
7078
|
sidebar: this.getOpenStates(this.sidebarItems()),
|
|
7074
7079
|
footer: this.getOpenStates(this.sidebarFooterItems())
|
|
7075
7080
|
};
|
|
7076
|
-
console.log(state);
|
|
7077
7081
|
localStorage.setItem(this.openStateKey, JSON.stringify(state));
|
|
7078
7082
|
}
|
|
7079
7083
|
getOpenStates(from) {
|