architwin 1.4.0 → 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()");
|