diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2019-06-13 18:47:38 +0300 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2019-06-13 18:47:38 +0300 |
commit | 7291484d313f8f999e7f2c07978ca855fd04f1c1 (patch) | |
tree | 5bce25d2f78c6947f0e18575486f9cda0171a061 /app | |
parent | 63e565153149eb740c08407649ea35a2ed4d128e (diff) | |
parent | 8d2ee368bdb1757a3620f6a05e3e435bea3c6ba2 (diff) |
Merge branch 'blob-row-click-to-open' into 'master'
Click file row in repository Vue app to view file
See merge request gitlab-org/gitlab-ce!29596
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/javascripts/repository/components/table/row.vue | 3 |
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); } }, }, |