forked from Ericsson/codechecker
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/showing-closed-reports' into sho…
…wing-closed-reports
- Loading branch information
Showing
12 changed files
with
170 additions
and
23 deletions.
There are no files selected for viewing
Binary file modified
BIN
+187 Bytes
(100%)
web/api/js/codechecker-api-node/dist/codechecker-api-6.58.0.tgz
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+17 Bytes
(100%)
web/api/py/codechecker_api_shared/dist/codechecker_api_shared.tar.gz
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
web/server/vue-cli/src/components/Icons/ReportStatusIcon.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<template> | ||
<v-icon | ||
v-if="status === ReportStatus.OUTSTANDING" | ||
color="error" | ||
title="Outstanding" | ||
:size="size" | ||
> | ||
mdi-alert | ||
</v-icon> | ||
|
||
<v-icon | ||
v-else-if="status === ReportStatus.CLOSED" | ||
color="primary" | ||
title="Closed" | ||
:size="size" | ||
> | ||
mdi-close | ||
</v-icon> | ||
</template> | ||
|
||
<script> | ||
import { ReportStatus } from "@cc/report-server-types"; | ||
export default { | ||
name: "ReportStatusIcon", | ||
props: { | ||
status: { type: Number, required: true }, | ||
size: { type: Number, default: null } | ||
}, | ||
data() { | ||
return { | ||
ReportStatus | ||
}; | ||
} | ||
}; | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { ReportStatus } from "@cc/report-server-types"; | ||
|
||
export default { | ||
methods: { | ||
reportStatusFromCodeToString(reportCode) { | ||
switch (reportCode) { | ||
case ReportStatus.OUTSTANDING: | ||
return "Outstanding"; | ||
case ReportStatus.CLOSED: | ||
return "Closed"; | ||
default: | ||
return ""; | ||
} | ||
}, | ||
|
||
reportStatusFromStringToCode(status) { | ||
switch (status.toLowerCase()) { | ||
case "outstanding": | ||
return ReportStatus.OUTSTANDING; | ||
case "closed": | ||
return ReportStatus.CLOSED; | ||
default: | ||
return -1; | ||
} | ||
} | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters