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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jonas Leder
Papermerge.Js
Commits
b04fd88c
Commit
b04fd88c
authored
3 years ago
by
Eugen Ciur
Browse files
Options
Downloads
Patches
Plain Diff
fix tag refresh issue
parent
99066a5f
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
app/components/tag/table_row.js
+5
-1
5 additions, 1 deletion
app/components/tag/table_row.js
app/routes/application.js
+0
-5
0 additions, 5 deletions
app/routes/application.js
app/routes/authenticated.js
+11
-0
11 additions, 0 deletions
app/routes/authenticated.js
with
16 additions
and
6 deletions
app/components/tag/table_row.js
+
5
−
1
View file @
b04fd88c
...
...
@@ -9,6 +9,7 @@ export default class TableRowComponent extends Component {
// being edited i.e. in edit mode
@
tracked
edit_mode_id
=
0
;
@
service
store
;
@
service
router
;
@
action
async
onRemove
(
tag
)
{
...
...
@@ -40,7 +41,10 @@ export default class TableRowComponent extends Component {
this
.
store
.
findRecord
(
'
tag
'
,
tag
.
id
).
then
((
found_tag
)
=>
{
found_tag
.
name
=
tag
.
name
;
found_tag
.
description
=
tag
.
description
;
found_tag
.
save
();
found_tag
.
save
().
then
(()
=>
{
// refresh pinned tags on the sidebar
that
.
router
.
refresh
();
});
});
}
else
{
console
.
warn
(
`onSaveChanges received tag=
${
tag
}
object without tag ID`
);
...
...
This diff is collapsed.
Click to expand it.
app/routes/application.js
+
0
−
5
View file @
b04fd88c
...
...
@@ -3,9 +3,4 @@ import BaseRoute from 'papermerge/routes/base';
export
default
class
ApplicationRoute
extends
BaseRoute
{
async
model
()
{
return
this
.
store
.
findAll
(
'
tag
'
).
then
((
tags
)
=>
{
return
tags
.
filter
(
tag
=>
tag
.
pinned
);
});
}
}
This diff is collapsed.
Click to expand it.
app/routes/authenticated.js
0 → 100644
+
11
−
0
View file @
b04fd88c
import
BaseRoute
from
'
papermerge/routes/base
'
;
export
default
class
AuthenticatedRoute
extends
BaseRoute
{
async
model
()
{
return
this
.
store
.
findAll
(
'
tag
'
).
then
((
tags
)
=>
{
return
tags
.
filter
(
tag
=>
tag
.
pinned
);
});
}
}
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