Skip to content
Snippets Groups Projects
Commit 289318e5 authored by Eugen Ciur's avatar Eugen Ciur
Browse files

remove comments and console.log messages

parent f9738437
Branches
No related tags found
No related merge requests found
...@@ -4,36 +4,12 @@ import { action } from '@ember/object'; ...@@ -4,36 +4,12 @@ import { action } from '@ember/object';
import { inject as service } from '@ember/service'; import { inject as service } from '@ember/service';
import { A } from '@ember/array'; import { A } from '@ember/array';
// https://discuss.emberjs.com/t/how-to-force-re-render-a-glimmer-component/18150
export default class SearchComponent extends Component { export default class SearchComponent extends Component {
@service requests; @service requests;
@service router; @service router;
@tracked query; @tracked query;
@tracked autocomplete_items = A([]); @tracked autocomplete_items = A([]);
/*
@tracked autocomplete_items = A([
{
'title': 'invoice.pdf',
'type': 'document',
'path': 'Home / My Documents / Invoices'
},
{
'title': 'invoice2.pdf',
'type': 'document',
'path': 'Home / My Documents'
},
{
'title': 'invoice3.pdf',
'type': 'document',
'path': 'Home / My Documents / Invoices'
},
{
'title': 'invoice.pdf',
'type': 'document',
'path': 'Home'
},
]);
*/
@action @action
async doSearch() { async doSearch() {
...@@ -57,7 +33,6 @@ export default class SearchComponent extends Component { ...@@ -57,7 +33,6 @@ export default class SearchComponent extends Component {
@action @action
openItem(item) { openItem(item) {
console.log(`click title=${item.title} ID=${item.document_id}`);
if (item.type == 'document') { if (item.type == 'document') {
this.router.transitionTo('authenticated.document', item.document_id); this.router.transitionTo('authenticated.document', item.document_id);
this._reset(); this._reset();
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment