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:
authorPhil Hughes <me@iamphill.com>2019-06-13 13:03:54 +0300
committerPhil Hughes <me@iamphill.com>2019-06-13 13:03:54 +0300
commit8d2ee368bdb1757a3620f6a05e3e435bea3c6ba2 (patch)
tree93360f53875cd25e63412c217852c3072356c506 /app/assets/javascripts
parent738f55a0376f86a7e52fb4b76f3e22bd5da514c2 (diff)
Click file row in repository Vue app to view file
Diffstat (limited to 'app/assets/javascripts')
-rw-r--r--app/assets/javascripts/repository/components/table/row.vue3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/assets/javascripts/repository/components/table/row.vue b/app/assets/javascripts/repository/components/table/row.vue
index e24a5e2c447..4519f82fc93 100644
--- a/app/assets/javascripts/repository/components/table/row.vue
+++ b/app/assets/javascripts/repository/components/table/row.vue
@@ -1,5 +1,6 @@
<script>
import { GlBadge } from '@gitlab/ui';
+import { visitUrl } from '~/lib/utils/url_utility';
import { getIconName } from '../../utils/icon';
import getRefMixin from '../../mixins/get_ref';
@@ -63,6 +64,8 @@ export default {
openRow() {
if (this.isFolder) {
this.$router.push(this.routerLinkTo);
+ } else {
+ visitUrl(this.url);
}
},
},