mirror of
https://github.com/wekan/wekan.git
synced 2026-02-02 22:51:47 +01:00
Fix and update easysearch
This commit is contained in:
parent
3ddb97c8c9
commit
339e044a30
11 changed files with 40 additions and 45 deletions
|
|
@ -56,17 +56,17 @@ template(name="importMapMembersAddPopup")
|
|||
p
|
||||
| {{_ 'import-user-select'}}
|
||||
.js-map-member
|
||||
+esInput(index="users")
|
||||
+EasySearch.Input(index=searchIndex)
|
||||
ul.pop-over-list
|
||||
+esEach(index="users")
|
||||
+EasySearch.Each(index=searchIndex)
|
||||
li.item.js-member-item
|
||||
a.name.js-select-import(title="{{profile.fullname}} ({{username}})" data-id="{{_id}}")
|
||||
+userAvatar(userId=_id esSearch=true)
|
||||
a.name.js-select-import(title="{{profile.fullname}} ({{username}})" data-id="{{__originalId}}")
|
||||
+userAvatar(userId=__originalId)
|
||||
span.full-name
|
||||
= profile.fullname
|
||||
| (<span class="username">{{username}}</span>)
|
||||
+ifEsIsSearching(index='users')
|
||||
+EasySearch.IfSearching(index=searchIndex)
|
||||
+spinner
|
||||
+ifEsHasNoResults(index="users")
|
||||
+EasySearch.IfNoResults(index=searchIndex)
|
||||
.manage-member-section
|
||||
p.quiet {{_ 'no-results'}}
|
||||
|
|
|
|||
|
|
@ -297,7 +297,7 @@ BlazeComponent.extendComponent({
|
|||
},
|
||||
|
||||
onSelectUser() {
|
||||
Popup.getOpenerComponent().mapSelectedMember(this.currentData()._id);
|
||||
Popup.getOpenerComponent(5).mapSelectedMember(this.currentData().__originalId);
|
||||
Popup.back();
|
||||
},
|
||||
|
||||
|
|
@ -309,3 +309,7 @@ BlazeComponent.extendComponent({
|
|||
];
|
||||
},
|
||||
}).register('importMapMembersAddPopup');
|
||||
|
||||
Template.importMapMembersAddPopup.helpers({
|
||||
searchIndex: () => Users.search_index,
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue