fixup! implement community basics
All checks were successful
rvr-nextgen/pipeline/pr-master This commit looks good

This commit is contained in:
Bence Pőcze 2023-04-16 13:56:31 +02:00
parent f1b32266cd
commit 4380f10278
Signed by: bence
GPG Key ID: DC5BD6E95A333E6D
2 changed files with 2 additions and 1 deletions

View File

@ -6,7 +6,7 @@
});
element.addEventListener('search', RVR.debounce(async function (e) {
RVR.httpRequest('GET', `/searchUser?q=${encodeURIComponent(e.detail.value)}`, function () {
RVR.httpRequest('GET', searchUserUrl.replace('QUERY', encodeURIComponent(e.detail.value)), function () {
choices.setChoices(this.response.results, 'value', 'label', true);
});
}));

View File

@ -34,6 +34,7 @@
@section(pageScript)
<script>
var searchUserUrl = '/<?= Container::$routeCollection->getRoute('searchUser')->generateLink(['q' => 'QUERY']) ?>';
var newMemberUrl = '/<?= Container::$routeCollection->getRoute('community-members-new')->generateLink(['communityId' => $community->getId()]) ?>';
var editMemberUrl = '/<?= Container::$routeCollection->getRoute('community-members-edit')->generateLink(['communityId' => $community->getId()]) ?>';
var deleteMemberUrl = '/<?= Container::$routeCollection->getRoute('community-members-delete')->generateLink(['communityId' => $community->getId()]) ?>';