File tree Expand file tree Collapse file tree 3 files changed +19
-17
lines changed Expand file tree Collapse file tree 3 files changed +19
-17
lines changed Original file line number Diff line number Diff line change @@ -64,12 +64,12 @@ function handleAttributesUpdated(event) {
64
64
<table class =" table table-striped" >
65
65
<thead >
66
66
<tr >
67
- <th style = " width : 30 % " scope =" col" >value</th >
68
- <th style =" width : 15 % " scope =" col" class =" d-none d-sm-table-cell" >tags</th >
69
- <th style = " width : 10 % " scope =" col" >type</th >
70
- <th style = " width : 10 % " scope =" col" class =" d-none d-sm-table-cell" >timestamp</th >
71
- <th style = " width : 15 % " scope =" col" class =" d-none d-sm-table-cell" >distribution</th >
72
- <th style = " width : 20 % " scope =" col" class =" text-end" >actions</th >
67
+ <th scope =" col" >value</th >
68
+ <th style =" width : 400 px ; " scope =" col" class =" d-none d-sm-table-cell" >tags</th >
69
+ <th scope =" col" >type</th >
70
+ <th scope =" col" class =" d-none d-sm-table-cell" >timestamp</th >
71
+ <th scope =" col" class =" d-none d-sm-table-cell" >distribution</th >
72
+ <th scope =" col" class =" text-end" >actions</th >
73
73
</tr >
74
74
</thead >
75
75
<tbody >
Original file line number Diff line number Diff line change @@ -42,12 +42,12 @@ function handleAttributeEnriched(attribute_id) {
42
42
<table class =" table table-striped" >
43
43
<thead >
44
44
<tr >
45
- <th style = " width : 30 % " scope =" col" >value</th >
46
- <th style =" width : 15 % " scope =" col" class =" d-none d-sm-table-cell" >tags</th >
47
- <th style = " width : 10 % " scope =" col" >type</th >
48
- <th style = " width : 10 % " scope =" col" class =" d-none d-sm-table-cell" >timestamp</th >
49
- <th style = " width : 15 % " scope =" col" class =" d-none d-sm-table-cell" >distribution</th >
50
- <th style = " width : 20 % " scope =" col" class =" text-end" >actions</th >
45
+ <th scope =" col" >value</th >
46
+ <th style =" width : 400 px " scope =" col" class =" d-none d-sm-table-cell" >tags</th >
47
+ <th scope =" col" >type</th >
48
+ <th scope =" col" class =" d-none d-sm-table-cell" >timestamp</th >
49
+ <th scope =" col" class =" d-none d-sm-table-cell" >distribution</th >
50
+ <th scope =" col" class =" text-end" >actions</th >
51
51
</tr >
52
52
</thead >
53
53
<tbody >
Original file line number Diff line number Diff line change @@ -68,18 +68,19 @@ onMounted(() => {
68
68
},
69
69
render: {
70
70
option : function (data , escape ) {
71
- return ' <span class="badge mx-1 tag" style="color: ' + escape (data .color ) + ' ; background-color: ' + escape (data .backgroundColor ) + ' " title="' + escape (data .name ) + ' ">' +
71
+ return ' <span class="badge mx-1 tag" style="color: ' + escape (data .color ) + ' ; background-color: ' + escape (data .backgroundColor ) + ' ; " title="' + escape (data .name ) + ' ">' +
72
72
escape (data .name ) +
73
73
' </span>' ;
74
74
},
75
75
item : function (data , escape ) {
76
- return ' <span class="badge mx-1 tag" style="color: ' + escape (data .color ) + ' ; background-color: ' + escape (data .backgroundColor ) + ' " title="' + escape (data .name ) + ' ">' +
76
+ return ' <span class="badge mx-1 tag" style="display:block; color: ' + escape (data .color ) + ' ; background-color: ' + escape (data .backgroundColor ) + ' ; " title="' + escape (data .name ) + ' "><span class="tag-label ">' +
77
77
escape (data .name ) +
78
- ' </span>' ;
78
+ ' <span/>< /span>' ;
79
79
}
80
80
},
81
81
onLoad () {
82
- selectElement .value .tomselect .setValue (props .selectedTags .map (tag => tag .name ), true );
82
+ let tags = props .selectedTags ? props .selectedTags .map (tag => tag .name ) : [];
83
+ selectElement .value .tomselect .setValue (tags, true );
83
84
initialising = false ;
84
85
},
85
86
onItemRemove : function (tag ) {
@@ -97,7 +98,6 @@ onMounted(() => {
97
98
if (initialising) {
98
99
return ;
99
100
}
100
- console .log (item);
101
101
if (props .modelClass == " event" ) {
102
102
eventsStore .tag (props .model .id , tag);
103
103
return ;
@@ -113,6 +113,8 @@ onMounted(() => {
113
113
114
114
</script >
115
115
116
+ <style ></style >
117
+
116
118
<template >
117
119
<select ref =" selectElement" multiple >
118
120
</select >
You can’t perform that action at this time.
0 commit comments