@xh/hoist 68.0.0-SNAPSHOT.1726061888650 → 68.0.0-SNAPSHOT.1726062354143
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.
|
@@ -191,17 +191,16 @@ export class AlertBannerModel extends HoistModel {
|
|
|
191
191
|
async saveBannerSpecAsync(spec: AlertBannerSpec) {
|
|
192
192
|
const {active, message, intent, iconName, enableClose, clientApps} = spec;
|
|
193
193
|
try {
|
|
194
|
-
await XH.fetchService
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
})
|
|
199
|
-
.track({
|
|
194
|
+
await XH.fetchService.postJson({
|
|
195
|
+
url: 'alertBannerAdmin/setAlertSpec',
|
|
196
|
+
body: spec,
|
|
197
|
+
track: {
|
|
200
198
|
category: 'Audit',
|
|
201
199
|
message: 'Updated Alert Banner',
|
|
202
200
|
data: {active, message, intent, iconName, enableClose, clientApps},
|
|
203
201
|
logData: ['active']
|
|
204
|
-
}
|
|
202
|
+
}
|
|
203
|
+
});
|
|
205
204
|
} catch (e) {
|
|
206
205
|
XH.handleException(e);
|
|
207
206
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xh/hoist",
|
|
3
|
-
"version": "68.0.0-SNAPSHOT.
|
|
3
|
+
"version": "68.0.0-SNAPSHOT.1726062354143",
|
|
4
4
|
"description": "Hoist add-on for building and deploying React Applications.",
|
|
5
5
|
"repository": "github:xh/hoist-react",
|
|
6
6
|
"homepage": "https://xh.io",
|
package/svc/PrefService.ts
CHANGED
|
@@ -180,10 +180,11 @@ export class PrefService extends HoistService {
|
|
|
180
180
|
params: {
|
|
181
181
|
clientUsername: XH.getUsername(),
|
|
182
182
|
updates: JSON.stringify(updates)
|
|
183
|
+
},
|
|
184
|
+
track: {
|
|
185
|
+
message: `Migrated ${updateCount} preferences`,
|
|
186
|
+
data: updates
|
|
183
187
|
}
|
|
184
|
-
}).track({
|
|
185
|
-
message: `Migrated ${updateCount} preferences`,
|
|
186
|
-
data: updates
|
|
187
188
|
});
|
|
188
189
|
XH.localStorageService.remove(key);
|
|
189
190
|
}
|