architwin 1.3.9 → 1.4.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.
- package/lib/atwinui/events.js +11 -11
- package/package.json +1 -1
package/lib/atwinui/events.js
CHANGED
|
@@ -347,17 +347,17 @@ function handlePlaceTag() {
|
|
|
347
347
|
iTag = yield renderTag({ tag: tag }, true);
|
|
348
348
|
}
|
|
349
349
|
log.info('iTag', iTag);
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
log.info('__@
|
|
350
|
+
try {
|
|
351
|
+
// set tag icon
|
|
352
|
+
const targetSubCat = targetCategory.subcategories.find(subcat => subcat.uuid === payload.tagSubcategoryId);
|
|
353
|
+
log.info('__@ [onMoveTag] Icon URL: ', targetSubCat.json_data.iconUrl);
|
|
354
|
+
if (targetSubCat.json_data && targetSubCat.json_data.iconUrl && targetSubCat.json_data.iconUrl !== '' && targetSubCat.json_data.iconUrl.includes('https')) {
|
|
355
|
+
yield setTagIcon({ tag: iTag, icon: (_a = targetSubCat.json_data.iconUrl) !== null && _a !== void 0 ? _a : '', color: iTag.color });
|
|
356
|
+
log.info('__@ [onMoveTag] Tag icon set!');
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
catch (error) {
|
|
360
|
+
log.info('__@ [onMoveTag] Error on setTagIcon: ', error);
|
|
361
361
|
}
|
|
362
362
|
moveTag(iTag.id, onTagPlaced);
|
|
363
363
|
function onTagPlaced() {
|