On 16 November 2017 at 05:14, Sam Ruby <ru...@intertwingly.net> wrote: > On Wed, Nov 15, 2017 at 8:24 PM, sebb AT ASF <s...@apache.org> wrote: >> I copied some code from committerSearch.js.rb. >> >> Could this code be shared somehow? > > https://vuejs.org/v2/guide/mixins.html > > Examples: > > https://github.com/apache/whimsy/tree/master/www/roster/views/mixins >
Thanks, useful to know! However I've just realised that the checking should really be done in the backend instead. Since the email addresses are known when the page data is being collected, there's no point deferring the lookup. The code I copied is needed at display time because the lookup data comes from a search box. That's not the case here. <snip/>