@sapui5/sap.fe.navigation 1.151.0 → 1.152.0
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.
|
@@ -31,7 +31,7 @@ type ShellAppState = {
|
|
|
31
31
|
getKey(): string;
|
|
32
32
|
setData(obj: object): void;
|
|
33
33
|
getData(): InnerAppData;
|
|
34
|
-
save():
|
|
34
|
+
save(): Promise<undefined>;
|
|
35
35
|
};
|
|
36
36
|
/**
|
|
37
37
|
* Structure of stored app state.
|
|
@@ -1800,17 +1800,26 @@ export class NavigationHandler extends BaseObject {
|
|
|
1800
1800
|
oAppState: ShellAppState,
|
|
1801
1801
|
fnOnError?: Function
|
|
1802
1802
|
): { appStateKey: string; promise: JQuery.Promise<string> } | undefined {
|
|
1803
|
+
const oAppStatePromise = jQuery.Deferred();
|
|
1803
1804
|
const sAppStateKey = oAppState.getKey();
|
|
1804
1805
|
const oAppDataForSave = this._fetchAppDataForSave(oAppData, fnOnError);
|
|
1805
1806
|
if (!oAppDataForSave) {
|
|
1806
1807
|
return undefined;
|
|
1807
1808
|
}
|
|
1808
1809
|
oAppState.setData(oAppDataForSave);
|
|
1809
|
-
|
|
1810
|
+
oAppState
|
|
1811
|
+
.save()
|
|
1812
|
+
.then(function () {
|
|
1813
|
+
oAppStatePromise.resolve();
|
|
1814
|
+
return;
|
|
1815
|
+
})
|
|
1816
|
+
.catch(function (oError) {
|
|
1817
|
+
oAppStatePromise.reject(oError);
|
|
1818
|
+
});
|
|
1810
1819
|
|
|
1811
1820
|
return {
|
|
1812
1821
|
appStateKey: sAppStateKey,
|
|
1813
|
-
promise:
|
|
1822
|
+
promise: oAppStatePromise.promise()
|
|
1814
1823
|
};
|
|
1815
1824
|
}
|
|
1816
1825
|
|
|
@@ -147,7 +147,7 @@ sap.ui.define(["sap/ui/core/Lib", "sap/ui/core/library"], function (Library, _li
|
|
|
147
147
|
name: "sap.fe.navigation",
|
|
148
148
|
apiVersion: 2,
|
|
149
149
|
// eslint-disable-next-line no-template-curly-in-string
|
|
150
|
-
version: "1.
|
|
150
|
+
version: "1.152.0",
|
|
151
151
|
dependencies: ["sap.ui.core"],
|
|
152
152
|
types: ["sap.fe.navigation.NavType", "sap.fe.navigation.ParamHandlingMode", "sap.fe.navigation.SuppressionBehavior"],
|
|
153
153
|
interfaces: [],
|