@live-change/vue3-components 0.8.23 → 0.8.25
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.
- package/logic/locale.js +4 -1
- package/package.json +3 -3
package/logic/locale.js
CHANGED
|
@@ -66,7 +66,9 @@ export class Locale {
|
|
|
66
66
|
async getLocaleObservable() {
|
|
67
67
|
return (async () => {
|
|
68
68
|
if(this.localeObservable) return this.localeObservable
|
|
69
|
-
if(
|
|
69
|
+
if(!this.api.views.localeSettings) { // no locale settings service available
|
|
70
|
+
this.localeObservable = new ObservableValue(null)
|
|
71
|
+
} else if(typeof window === 'undefined') {
|
|
70
72
|
const value = await this.api.get(this.api.views.localeSettings.myLocaleSettings({}))
|
|
71
73
|
this.localeObservable = new ObservableValue(value)
|
|
72
74
|
} else {
|
|
@@ -89,6 +91,7 @@ export class Locale {
|
|
|
89
91
|
}
|
|
90
92
|
|
|
91
93
|
updateLocale(localSettingsUpdate) {
|
|
94
|
+
if(!this.api.actions.localeSettings) return console.error("No locale settings service available!")
|
|
92
95
|
return this.api.actions.localeSettings.setOrUpdateMyLocaleSettings(localSettingsUpdate)
|
|
93
96
|
}
|
|
94
97
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@live-change/vue3-components",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.25",
|
|
4
4
|
"description": "Live Change Framework - vue components",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -21,10 +21,10 @@
|
|
|
21
21
|
},
|
|
22
22
|
"homepage": "https://github.com/live-change/live-change-stack",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@live-change/vue3-ssr": "^0.8.
|
|
24
|
+
"@live-change/vue3-ssr": "^0.8.25",
|
|
25
25
|
"debug": "^4.3.4",
|
|
26
26
|
"mitt": "3.0.1",
|
|
27
27
|
"vue": "^3.4.19"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "1aa24b8ec3bfaa3576b72b514b2a97b061cb57fc"
|
|
30
30
|
}
|