1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-08-02 20:15:26 +02:00

Search will pass source down to document being viewed

Backend records search referrer of document being viewed.
This commit is contained in:
McMatts 2018-04-05 14:24:27 +01:00
parent c9e429ea1a
commit 335a1d1f81
2 changed files with 6 additions and 2 deletions

View file

@ -9,10 +9,14 @@
//
// https://documize.com
import { computed } from '@ember/object';
import Component from '@ember/component';
export default Component.extend({
resultPhrase: '',
searchQuery: computed('keywords', function() {
return encodeURIComponent(this.get('keywords'));
}),
didReceiveAttrs() {
this._super(...arguments);