Skip to content

Commit 537343e

Browse files
authored
Merge pull request #648 from KelvinTegelaar/dev
[pull] dev from KelvinTegelaar:dev
2 parents 6328be6 + a400395 commit 537343e

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

src/pages/tenant/manage/applied-standards.js

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ import {
3434
Assignment,
3535
NotificationImportant,
3636
Construction,
37+
Schedule,
3738
} from "@mui/icons-material";
3839
import standards from "/src/data/standards.json";
3940
import { CippApiDialog } from "../../../components/CippComponents/CippApiDialog";
@@ -909,12 +910,16 @@ const Page = () => {
909910

910911
const compliancePercentage =
911912
allCount > 0
912-
? Math.round((compliantCount / (allCount - reportingDisabledCount - overriddenCount || 1)) * 100)
913+
? Math.round(
914+
(compliantCount / (allCount - reportingDisabledCount - overriddenCount || 1)) * 100
915+
)
913916
: 0;
914917

915918
const missingLicensePercentage =
916919
allCount > 0
917-
? Math.round((missingLicenseCount / (allCount - reportingDisabledCount - overriddenCount || 1)) * 100)
920+
? Math.round(
921+
(missingLicenseCount / (allCount - reportingDisabledCount - overriddenCount || 1)) * 100
922+
)
918923
: 0;
919924

920925
// Combined score: compliance percentage + missing license percentage
@@ -1173,6 +1178,19 @@ const Page = () => {
11731178
</Stack>
11741179
{selectedTemplate && (
11751180
<Stack direction="row" spacing={1} sx={{ mt: 2, displayPrint: "none" }}>
1181+
{selectedTemplate?.runManually && (
1182+
<Chip
1183+
label="Run Manually"
1184+
size="small"
1185+
color="warning"
1186+
variant="outlined"
1187+
icon={
1188+
<SvgIcon fontSize="small">
1189+
<Schedule />
1190+
</SvgIcon>
1191+
}
1192+
/>
1193+
)}
11761194
<Chip
11771195
icon={
11781196
<SvgIcon fontSize="small">

0 commit comments

Comments
 (0)