Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
Papermerge.Js
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jonas Leder
Papermerge.Js
Commits
289318e5
Commit
289318e5
authored
Jan 8, 2022
by
Eugen Ciur
Browse files
Options
Downloads
Patches
Plain Diff
remove comments and console.log messages
parent
f9738437
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/components/search/index.js
+1
-26
1 addition, 26 deletions
app/components/search/index.js
with
1 addition
and
26 deletions
app/components/search/index.js
+
1
−
26
View file @
289318e5
...
@@ -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
();
...
...
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment