Skip to content

Commit b4eec23

Browse files
xingzhang-suseNickChungSUSE
authored andcommitted
#151 Feat: Only show scaning status panel on dashboard by scanjob CRD
1 parent 1f257f3 commit b4eec23

File tree

5 files changed

+845
-692
lines changed

5 files changed

+845
-692
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,7 @@
2424

2525
- Pull the code to your local computer
2626
- Run `yarn` to install dependency packages
27-
- Run `API=<Rancher UI's URL> yarn dev` to start the Rancher manager UI with security-ui-ext
27+
- Run `API=<Rancher UI's URL> yarn dev` to start the Rancher manager UI with security-ui-ext
28+
29+
#### Open the UI on local computer
30+
https://localhost:8005/

pkg/sbombastic-image-vulnerability-scanner/models/sbombastic.rancher.io.registry.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ export default class Registry extends SteveModel {
150150
},
151151
previousStatus: this.getPreviousStatus(scanJobs),
152152
lastTransitionTime: scanJobs[0] && scanJobs[0].status.statusResult.lastTransitionTime ? scanJobs[0].status.statusResult.lastTransitionTime : null,
153-
refreshFn: this.refresh,
153+
completionTime: scanJobs[0] && scanJobs[0].status.completionTime ? scanJobs[0] && scanJobs[0].status.completionTime : null,
154154
};
155155
console.log("scanRec");
156156
return scanRec;

0 commit comments

Comments
 (0)