Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
30dddc84
Commit
30dddc84
authored
Aug 12, 2020
by
NataliaTepluhina
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed routing to use method
parent
1786412c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
app/assets/javascripts/design_management/components/upload/design_version_dropdown.vue
..._management/components/upload/design_version_dropdown.vue
+7
-1
No files found.
app/assets/javascripts/design_management/components/upload/design_version_dropdown.vue
View file @
30dddc84
...
...
@@ -45,6 +45,12 @@ export default {
},
methods
:
{
findVersionId
,
routeToVersion
(
versionId
)
{
this
.
$router
.
push
({
path
:
this
.
$route
.
path
,
query
:
{
version
:
this
.
findVersionId
(
versionId
)
},
});
},
},
};
</
script
>
...
...
@@ -56,7 +62,7 @@ export default {
:key=
"version.id"
:is-check-item=
"true"
:is-checked=
"findVersionId(version.id) === currentVersionId"
@
click=
"
$router.push(
{ path: $route.path, query: { version: findVersionId(version.id) } }
)"
@
click=
"
routeToVersion(version.id
)"
>
<template>
{{
__
(
'
Version
'
)
}}
{{
allVersions
.
length
-
index
}}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment