@@ -18,7 +18,7 @@ var setCurrentTags = function () {
18
18
var instancesRepo = createInstancesManagement ( )
19
19
var instances = instancesRepo . getAll ( )
20
20
21
- return instances . map ( i => ( { id :i . uuid , tag :i . name } ) )
21
+ return instances . map ( i => ( { id :i . uuid , tag :i . name , icon : "./img/icons/" + i . iconPath } ) )
22
22
}
23
23
24
24
var getEvaluatorData = function ( event , data , instance ) {
@@ -168,7 +168,7 @@ var updateTable = function (event, data, instance) {
168
168
console . log ( editor . otherEntries ) ;
169
169
170
170
editor . mentionsDefs = [
171
- { name :"hashtag" , key :"#" , attributes :[ "id" , "tag" ] , attributeToDisplay :'tag' } ,
171
+ { name :"hashtag" , key :"#" , attributes :[ "id" , "tag" ] , attributeToDisplay :'tag' , imageAttributes : "icon" } ,
172
172
{ name :"mention" , key :"@" , attributes :[ "name" , "id" , "email" ] , attributeToDisplay :'name' } ,
173
173
{ name :"arrow" , key :"->" , attributes :[ "id" , "tag" ] , attributeToDisplay :'tag' } ,
174
174
]
@@ -191,7 +191,11 @@ var updateTable = function (event, data, instance) {
191
191
}
192
192
193
193
var setUpTable = function ( event , data , instance ) {
194
- updateTable ( event , data , instance )
194
+ updateTable ( event , data , instance )
195
+ setTimeout ( function ( ) {
196
+ updateTableInstance ( event , data , instance ) // if use current is activated
197
+ } , 500 )
198
+
195
199
// subscribeToChanges(event, data, instance, updateTable)
196
200
subscribeToSearchParam ( event , data , instance , updateTableInstance )
197
201
}
0 commit comments