Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-09-22 06:10:15 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-09-22 06:10:15 +0300
commit1e69e818f0f6d3598efb67104c39ec9408570b0f (patch)
tree1dbb70f80d2a63e1a1aa2f282e8ab8e08edaee89 /app/assets/javascripts
parent0bdb61ade7f12067dd524463af4f83994f1baa37 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts')
-rw-r--r--app/assets/javascripts/repository/index.js2
-rw-r--r--app/assets/javascripts/repository/router.js3
2 files changed, 4 insertions, 1 deletions
diff --git a/app/assets/javascripts/repository/index.js b/app/assets/javascripts/repository/index.js
index 9753173ac30..74ef678c558 100644
--- a/app/assets/javascripts/repository/index.js
+++ b/app/assets/javascripts/repository/index.js
@@ -122,7 +122,7 @@ export default function setupVueRepositoryList() {
return h(LastCommit, {
props: {
currentPath: this.$route.params.path,
- refType: this.$route.query.ref_type,
+ refType: this.$route.meta.refType || this.$route.query.ref_type,
},
});
},
diff --git a/app/assets/javascripts/repository/router.js b/app/assets/javascripts/repository/router.js
index 5f73912ed2b..31bafab742d 100644
--- a/app/assets/javascripts/repository/router.js
+++ b/app/assets/javascripts/repository/router.js
@@ -63,6 +63,9 @@ export default function createRouter(base, baseRef) {
props: {
refType: 'HEADS',
},
+ meta: {
+ refType: 'HEADS',
+ },
},
],
});