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:
parent
c9e429ea1a
commit
335a1d1f81
2 changed files with 6 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue