@onehat/ui 0.3.78 → 0.3.80
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/package.json
CHANGED
|
@@ -332,11 +332,10 @@ export function ComboComponent(props) {
|
|
|
332
332
|
const filterName = getFilterName();
|
|
333
333
|
if (Repository.hasFilter(filterName)) {
|
|
334
334
|
Repository.clearFilters(filterName);
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
await Repository.reload();
|
|
335
|
+
if (Repository.isRemote) {
|
|
336
|
+
if (!this.isAutoLoad) {
|
|
337
|
+
await Repository.reload();
|
|
338
|
+
}
|
|
340
339
|
}
|
|
341
340
|
}
|
|
342
341
|
} else {
|
|
@@ -65,6 +65,9 @@ export default function GridRow(props) {
|
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
let value;
|
|
68
|
+
if (_.isFunction(config)) {
|
|
69
|
+
return config(item, key);
|
|
70
|
+
}
|
|
68
71
|
if (_.isPlainObject(config)) {
|
|
69
72
|
if (config.renderer) {
|
|
70
73
|
const extraProps = _.omit(config, [
|
|
@@ -140,9 +143,6 @@ export default function GridRow(props) {
|
|
|
140
143
|
value = item[config];
|
|
141
144
|
}
|
|
142
145
|
}
|
|
143
|
-
if (_.isFunction(config)) {
|
|
144
|
-
value = config(item);
|
|
145
|
-
}
|
|
146
146
|
if (_.isFunction(value)) {
|
|
147
147
|
return value(key);
|
|
148
148
|
}
|
|
@@ -187,7 +187,7 @@ export default function GridRow(props) {
|
|
|
187
187
|
variant="ghost"
|
|
188
188
|
w={30}
|
|
189
189
|
alignSelf="center"
|
|
190
|
-
|
|
190
|
+
mx={3}
|
|
191
191
|
/>}
|
|
192
192
|
</Row>;
|
|
193
193
|
}, [
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export default function parseNotification(notification) {
|
|
2
|
+
if (notification.notification) {
|
|
3
|
+
notification = notification.notification;
|
|
4
|
+
}
|
|
5
|
+
const
|
|
6
|
+
body = notification?.request?.content?.body,
|
|
7
|
+
title = notification?.request?.content?.title,
|
|
8
|
+
data = notification?.request?.content?.data;
|
|
9
|
+
return {
|
|
10
|
+
body,
|
|
11
|
+
title,
|
|
12
|
+
data,
|
|
13
|
+
};
|
|
14
|
+
};
|