diff options
author | Phil Hughes <me@iamphill.com> | 2019-05-23 13:41:21 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2019-05-24 15:59:54 +0100 |
commit | 1b998a4a121053210b3684664f3f7f4667da4431 (patch) | |
tree | b46f67cafb27a0905b8c1666cfa492fa5378f7eb /app/assets/javascripts/repository/components/table/index.vue | |
parent | c0ea4164cdc21e831fbbfa9dee48a6fa2766d9fc (diff) | |
download | gitlab-ce-1b998a4a121053210b3684664f3f7f4667da4431.tar.gz |
Added parent row link to files table
Diffstat (limited to 'app/assets/javascripts/repository/components/table/index.vue')
-rw-r--r-- | app/assets/javascripts/repository/components/table/index.vue | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/assets/javascripts/repository/components/table/index.vue b/app/assets/javascripts/repository/components/table/index.vue index 758f4b88be2..2b0a4644bf6 100644 --- a/app/assets/javascripts/repository/components/table/index.vue +++ b/app/assets/javascripts/repository/components/table/index.vue @@ -7,6 +7,7 @@ import getFiles from '../../queries/getFiles.graphql'; import getProjectPath from '../../queries/getProjectPath.graphql'; import TableHeader from './header.vue'; import TableRow from './row.vue'; +import ParentRow from './parent_row.vue'; const PAGE_SIZE = 100; @@ -15,6 +16,7 @@ export default { GlLoadingIcon, TableHeader, TableRow, + ParentRow, }, mixins: [getRefMixin], apollo: { @@ -47,6 +49,9 @@ export default { { path: this.path, ref: this.ref }, ); }, + showParentRow() { + return !this.isLoadingFiles && this.path !== ''; + }, }, watch: { $route: function routeChange() { @@ -120,6 +125,7 @@ export default { </caption> <table-header v-once /> <tbody> + <parent-row v-show="showParentRow" :commit-ref="ref" :path="path" /> <template v-for="val in entries"> <table-row v-for="entry in val" |