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
b722b853
Commit
b722b853
authored
Mar 20, 2022
by
Eugen Ciur
Browse files
Options
Downloads
Patches
Plain Diff
bugfix: refresh pinned tags on tag update
parent
f73c680c
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/components/tag/new.js
+4
-1
4 additions, 1 deletion
app/components/tag/new.js
app/components/tag/table_row.js
+2
-1
2 additions, 1 deletion
app/components/tag/table_row.js
with
6 additions
and
2 deletions
app/components/tag/new.js
+
4
−
1
View file @
b722b853
import
Component
from
'
@glimmer/component
'
;
import
Component
from
'
@glimmer/component
'
;
import
{
action
}
from
'
@ember/object
'
;
import
{
action
}
from
'
@ember/object
'
;
import
{
tracked
}
from
'
@glimmer/tracking
'
;
import
{
tracked
}
from
'
@glimmer/tracking
'
;
import
{
inject
as
service
}
from
'
@ember/service
'
;
import
{
service
}
from
'
@ember/service
'
;
const
COLORS
=
[
const
COLORS
=
[
'
#ff0000
'
,
'
#ff0000
'
,
...
@@ -34,6 +35,7 @@ export default class NewTagComponent extends Component {
...
@@ -34,6 +35,7 @@ export default class NewTagComponent extends Component {
*/
*/
@
service
store
;
@
service
store
;
@
service
router
;
// initially only 'new' button is visible
// initially only 'new' button is visible
@
tracked
form_visible
=
false
;
@
tracked
form_visible
=
false
;
...
@@ -59,6 +61,7 @@ export default class NewTagComponent extends Component {
...
@@ -59,6 +61,7 @@ export default class NewTagComponent extends Component {
}).
save
();
}).
save
();
this
.
_empty_form
();
this
.
_empty_form
();
this
.
router
.
refresh
();
}
}
@
action
@
action
...
...
This diff is collapsed.
Click to expand it.
app/components/tag/table_row.js
+
2
−
1
View file @
b722b853
import
Component
from
'
@glimmer/component
'
;
import
Component
from
'
@glimmer/component
'
;
import
{
tracked
}
from
'
@glimmer/tracking
'
;
import
{
tracked
}
from
'
@glimmer/tracking
'
;
import
{
action
}
from
'
@ember/object
'
;
import
{
action
}
from
'
@ember/object
'
;
import
{
inject
as
service
}
from
'
@ember/service
'
;
import
{
service
}
from
'
@ember/service
'
;
export
default
class
TableRowComponent
extends
Component
{
export
default
class
TableRowComponent
extends
Component
{
...
@@ -14,6 +14,7 @@ export default class TableRowComponent extends Component {
...
@@ -14,6 +14,7 @@ export default class TableRowComponent extends Component {
@
action
@
action
async
onRemove
(
tag
)
{
async
onRemove
(
tag
)
{
await
tag
.
destroyRecord
();
await
tag
.
destroyRecord
();
this
.
router
.
refresh
();
}
}
@
action
@
action
...
...
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