Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
c0repwn3r committed Feb 2, 2024
1 parent dba8c0c commit f676609
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/lib/components/CertificateBadge.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
UserRound,
} from "lucide-svelte";
import * as HoverCard from "$lib/components/ui/hover-card";
import {page} from "$app/stores";
export let cert: Certificate;
Expand Down Expand Up @@ -95,6 +96,7 @@
valid_in = cert.issuedInId;
}
}
if (!valid_in) { valid_in = $page.data.vacc_id; }
}
</script>

Expand Down
4 changes: 2 additions & 2 deletions src/routes/dashboard/vaccs/[id]/roster/cert-form.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
<Form.SelectContent>
{#each Object.entries(c_typ_e) as [k, v]}
<Form.SelectItem
disabled={ctyp_req_perm.has(v) ? ctyp_req_perm.get(v) : true}
disabled={ctyp_req_perm.has(v) ? !ctyp_req_perm.get(v) : true}
value={v}>
{k}
</Form.SelectItem>
Expand All @@ -86,7 +86,7 @@
<Form.SelectContent>
{#each Object.entries(p_typ_e) as [k, v]}
<Form.SelectItem
disabled={ptyp_req_perm.has(v) ? ptyp_req_perm.get(v) : true}
disabled={ptyp_req_perm.has(v) ? !ptyp_req_perm.get(v) : true}
value={v}>
{k}
</Form.SelectItem>
Expand Down

0 comments on commit f676609

Please sign in to comment.