diff --git a/frontend/src/components/layout/MainSidebar/MainSidebar.vue b/frontend/src/components/layout/MainSidebar/MainSidebar.vue
index 6b898c8bf0..a952edea72 100755
--- a/frontend/src/components/layout/MainSidebar/MainSidebar.vue
+++ b/frontend/src/components/layout/MainSidebar/MainSidebar.vue
@@ -30,7 +30,7 @@
-
+
{{ item.title }}
@@ -130,7 +130,7 @@
}, {
title: 'Repos',
to: {
- name: 'group_overview',
+ name: 'repos',
params: { }
},
htmlBefore: 'table_chart',
@@ -193,19 +193,19 @@
findRepoGroup() {
console.log(Object.keys(this.$store.state.common.apiGroups));
}
- checkForRepoRouteChange(e: any) {
- console.log(e);
- if (e.target.innerHTML !== 'Repos') {
- return;
- }
- let currentlySelectedRepoGroup = Object.keys(this.$store.state.common.apiGroups)[Object.keys(this.$store.state.common.apiGroups).length - 1].split('/')[0];
- console.log('HERE: ' + currentlySelectedRepoGroup);
- if (currentlySelectedRepoGroup === 'undefined') {
- this.$router.push({ name: 'repo_groups' });
- } else {
- this.$router.push(`/group/${currentlySelectedRepoGroup}/overview`);
- }
- }
+ // checkForRepoRouteChange(e: any) {
+ // console.log(e);
+ // if (e.target.innerHTML !== 'Repos') {
+ // return;
+ // }
+ // //let currentlySelectedRepoGroup = Object.keys(this.$store.state.common.apiGroups)[Object.keys(this.$store.state.common.apiGroups).length - 1].split('/')[0];
+ // //console.log('HERE: ' + currentlySelectedRepoGroup);
+ // //if (currentlySelectedRepoGroup === 'undefined') {
+ // // this.$router.push({ name: 'repo_groups' });
+ // //} else {
+ // this.$router.push(`/repos`);
+ // //}
+ // }
}
diff --git a/frontend/src/views/Repos.vue b/frontend/src/views/Repos.vue
index fd77a9e9d6..d723d4578a 100755
--- a/frontend/src/views/Repos.vue
+++ b/frontend/src/views/Repos.vue
@@ -74,7 +74,7 @@
- {{ repo.url }}
+ {{ repo.url }}
|
{{ repo.rg_name }} |
@@ -184,23 +184,26 @@ export default class Repos extends Vue{
}
}
- onGitRepo (rg_name: String, repo_name: String) {
- // this.$router.push({
- // name: 'repo_overview',
- // params: {group:e.rg_name, repo:e.repo_name, repo_group_id: e.repo_group_id, repo_id: e.repo_id, url:e.url}
- // }, () => {
- // console.dir(e);
- // });
- if (rg_name == null || repo_name == null ) {
- window.alert('Error - repo name not found in store');
- console.log(this.sortedRepos(this.sortColumn,this.ascending));
- } else {
- this.$router.push(`repo/${rg_name}/${repo_name}/overview`, () => {
- console.log(`RG_NAME: ${rg_name}`);
- console.log(`REPO_NAME: ${repo_name}`);
- });
- }
- }
+ // Removed 12/9/2021
+ // Replaced by router-link element
+ // If something broke in regards to parameter passing to the router, this could be it
+ // onGitRepo (rg_name: String, repo_name: String) {
+ // // this.$router.push({
+ // // name: 'repo_overview',
+ // // params: {group:e.rg_name, repo:e.repo_name, repo_group_id: e.repo_group_id, repo_id: e.repo_id, url:e.url}
+ // // }, () => {
+ // // console.dir(e);
+ // // });
+ // if (rg_name == null || repo_name == null ) {
+ // window.alert('Error - repo name not found in store');
+ // console.log(this.sortedRepos(this.sortColumn,this.ascending));
+ // } else {
+ // this.$router.push(`repo/${rg_name}/${repo_name}/overview`, () => {
+ // console.log(`RG_NAME: ${rg_name}`);
+ // console.log(`REPO_NAME: ${repo_name}`);
+ // });
+ // }
+ // }
}