mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-09 04:30:16 +09:00
fix RepoBuildView loadJobData
This commit is contained in:
1 parent
1cba52376a
commit
bc6a2b2374
1 file changed
+2
-2
@@ -140,7 +140,7 @@ const sfc = {
|
||||
toggleStepLogs(idx) {
|
||||
this.currentJobStepsStates[idx].expanded = !this.currentJobStepsStates[idx].expanded;
|
||||
if (this.currentJobStepsStates[idx].expanded) {
|
||||
// this.loadJobData(); // FIXME: cannot call loadJobData more than once
|
||||
this.loadJobData();
|
||||
}
|
||||
},
|
||||
|
||||
@@ -261,8 +261,8 @@ const sfc = {
|
||||
},
|
||||
|
||||
async loadJobData() {
|
||||
if (this.loading) return;
|
||||
try {
|
||||
if (this.loading) return;
|
||||
this.loading = true;
|
||||
|
||||
const stepLogCursors = this.currentJobStepsStates.map((it, idx) => {
|
||||
|
||||
Reference in new issue
Block a user