architwin 1.3.9 → 1.4.1
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.
|
@@ -54,10 +54,11 @@ export function renderTagMessagingPane() {
|
|
|
54
54
|
export function renderRecepientOptions() {
|
|
55
55
|
console.log("renderRecepientOptions()");
|
|
56
56
|
const recepients = getTagMessageRecepients();
|
|
57
|
+
console.log("[renderRecepientOptions] recepients: ", recepients);
|
|
58
|
+
const recepientDropdown = document.getElementById('at-recepient-dropdown');
|
|
59
|
+
recepientDropdown.innerHTML = ``;
|
|
57
60
|
if (recepients && recepients.length !== 0) {
|
|
58
|
-
const recepientDropdown = document.getElementById('at-recepient-dropdown');
|
|
59
61
|
if (recepientDropdown) {
|
|
60
|
-
recepientDropdown.innerHTML = ``;
|
|
61
62
|
const firstOp = document.createElement('option');
|
|
62
63
|
firstOp.value = '';
|
|
63
64
|
firstOp.textContent = i18n.t('NoRecipient');
|
|
@@ -70,6 +71,16 @@ export function renderRecepientOptions() {
|
|
|
70
71
|
});
|
|
71
72
|
}
|
|
72
73
|
}
|
|
74
|
+
else {
|
|
75
|
+
// Reset dropdown
|
|
76
|
+
console.log("[renderRecepientOptions] Reset dropdown");
|
|
77
|
+
if (recepientDropdown) {
|
|
78
|
+
const firstOp = document.createElement('option');
|
|
79
|
+
firstOp.value = '';
|
|
80
|
+
firstOp.textContent = i18n.t('NoRecipient');
|
|
81
|
+
recepientDropdown.appendChild(firstOp);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
73
84
|
}
|
|
74
85
|
export function renderTagMessages() {
|
|
75
86
|
console.log("renderTagMessages()");
|
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() {
|