Use absolute group path

This commit is contained in:
Simone Gotti 2019-03-29 09:28:31 +01:00
parent 6f7b0a0e16
commit 67756606fa
1 changed files with 5 additions and 5 deletions

View File

@ -151,19 +151,19 @@ export default {
let lastrun = false;
if (this.project !== null) {
if (this.query == "branches") {
group = "project/" + this.project.id + "/branch";
group = "/project/" + this.project.id + "/branch";
lastrun = true;
} else if (this.query == "tags") {
group = "project/" + this.project.id + "/tag";
group = "/project/" + this.project.id + "/tag";
lastrun = true;
} else if (this.query == "pullrequests") {
group = "project/" + this.project.id + "/pr";
group = "/project/" + this.project.id + "/pr";
lastrun = true;
} else {
group = "project/" + this.project.id;
group = "/project/" + this.project.id;
}
} else if (this.user !== null) {
group = "user/" + this.user.id;
group = "/user/" + this.user.id;
}
this.runs = await fetchRuns(group, lastrun);