architwin 1.0.71 → 1.0.72
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.
|
@@ -20,10 +20,6 @@ export function renderTagFormPane() {
|
|
|
20
20
|
<span>Tags</span>
|
|
21
21
|
</div>
|
|
22
22
|
<div class="at_form_container at_h-min-65">
|
|
23
|
-
<div class="at_field at_flex_row">
|
|
24
|
-
<label for="">Move Tag</label>
|
|
25
|
-
<span class="mdi mdi-map-marker at_icon" id="at-move-tag-btn" data-cy="at-move-tag-btn"></span>
|
|
26
|
-
</div>
|
|
27
23
|
<div class="at_field at_flex_row" style="${_tagCategories ? '' : 'display: none;'}">
|
|
28
24
|
<label for="">Category</label>
|
|
29
25
|
<select class="at_transparent_dropdown at_w-full" name="" id="at-category-dropdown" data-cy="at-category-dropdown">
|
|
@@ -52,6 +48,10 @@ export function renderTagFormPane() {
|
|
|
52
48
|
<label for="">Tag Name</label>
|
|
53
49
|
<input class="at_field_input at_w-full" type="text" name="tag_name" id="at-tag-name-input" data-cy="at-tag-name-input" placeholder="Ex: Wall Painting">
|
|
54
50
|
</div>
|
|
51
|
+
<div class="at_field at_flex_row">
|
|
52
|
+
<label for="">Move Tag</label>
|
|
53
|
+
<span class="mdi mdi-map-marker at_icon" id="at-move-tag-btn" data-cy="at-move-tag-btn"></span>
|
|
54
|
+
</div>
|
|
55
55
|
<div class="at-field at_flex_column">
|
|
56
56
|
<label for="">Description</label>
|
|
57
57
|
<textarea name="" id="at-tag-description-input" data-cy="at-tag-description-input" class="at_textarea"></textarea>
|
package/lib/atwinui/events.js
CHANGED
|
@@ -237,9 +237,14 @@ function handlePlaceTag() {
|
|
|
237
237
|
const payload = getTagFormData();
|
|
238
238
|
if (tagFormMode == "ADD" /* FORM_MODE.ADD */) {
|
|
239
239
|
if (_tagCategories) {
|
|
240
|
+
const targetCategory = _tagCategories.find(cat => cat.uuid === payload.tagCategoryId);
|
|
240
241
|
if (payload && payload.tagName && payload.tagCategoryId && payload.tagSubcategoryId) {
|
|
241
242
|
tag.label = payload.tagName;
|
|
242
243
|
tag.description = payload.tagDescription;
|
|
244
|
+
if (targetCategory) {
|
|
245
|
+
console.log("targetCategory is", targetCategory);
|
|
246
|
+
tag.color = targetCategory.json_data.color.rgb;
|
|
247
|
+
}
|
|
243
248
|
const iTag = yield renderTag({ tag: tag }, true);
|
|
244
249
|
console.log('iTag', iTag);
|
|
245
250
|
moveTag(iTag.id, onTagPlaced);
|