1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-21 14:19:43 +02:00

[WIP] Upgrade EmberJS -- lint pass!

This commit is contained in:
Harvey Kandola 2018-12-08 20:54:19 +00:00
parent c7808d0b5a
commit adbd00bdd7
95 changed files with 645 additions and 645 deletions

View file

@ -10,7 +10,7 @@
// https://documize.com
import $ from 'jquery';
import { computed } from '@ember/object';
import { computed, observer } from '@ember/object';
import { debounce } from '@ember/runloop';
import { inject as service } from '@ember/service';
import ModalMixin from '../../mixins/modal';
@ -28,9 +28,9 @@ export default Component.extend(ModalMixin, {
canDelete: false,
canMove: false,
docSearchFilter: '',
onKeywordChange: function () {
onKeywordChange: observer('docSearchFilter', function() {
debounce(this, this.searchDocs, 750);
}.observes('docSearchFilter'),
}),
emptySearch: computed('docSearchResults', function() {
return this.get('docSearchResults.length') === 0;
}),