-
Notifications
You must be signed in to change notification settings - Fork 147
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into fix-PRO-1094-alignment-fixes
# Conflicts: # src/routes/(console)/account/payments/paymentMethods.svelte
- Loading branch information
Showing
32 changed files
with
502 additions
and
99 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -26,7 +26,7 @@ | |
|
||
<p class="body-text-2"> | ||
{maxValue} | ||
{maxUnit && maxUnit} | ||
{maxUnit ? maxUnit : ''} | ||
</p> | ||
</div> | ||
{/if} | ||
|
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
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
47 changes: 47 additions & 0 deletions
47
src/routes/(console)/organization-[organization]/billing/removeAddress.svelte
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,47 @@ | ||
<script lang="ts"> | ||
import { invalidate } from '$app/navigation'; | ||
import { Modal } from '$lib/components'; | ||
import { Button } from '$lib/elements/forms'; | ||
import { addNotification } from '$lib/stores/notifications'; | ||
import { sdk } from '$lib/stores/sdk'; | ||
import { Submit, trackEvent, trackError } from '$lib/actions/analytics'; | ||
import { organization } from '$lib/stores/organization'; | ||
import { Dependencies } from '$lib/constants'; | ||
export let show = false; | ||
let error: string; | ||
async function removeAddress() { | ||
try { | ||
await sdk.forConsole.billing.removeBillingAddress($organization.$id); | ||
addNotification({ | ||
type: 'success', | ||
message: `The billing address has been removed from ${$organization.name}` | ||
}); | ||
trackEvent(Submit.OrganizationBillingAddressDelete); | ||
invalidate(Dependencies.ORGANIZATION); | ||
show = false; | ||
} catch (e) { | ||
error = e.message; | ||
trackError(e, Submit.OrganizationBillingAddressDelete); | ||
} | ||
} | ||
</script> | ||
|
||
<Modal | ||
bind:show | ||
bind:error | ||
onSubmit={removeAddress} | ||
icon="exclamation" | ||
state="warning" | ||
headerDivider={false} | ||
title="Remove billing address"> | ||
<p data-private> | ||
Are you sure you want to remove the billing address from <b>{$organization?.name}</b>? | ||
</p> | ||
<svelte:fragment slot="footer"> | ||
<Button text on:click={() => (show = false)}>Cancel</Button> | ||
<Button secondary submit>Remove</Button> | ||
</svelte:fragment> | ||
</Modal> |
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
src/routes/(console)/organization-[organization]/settings/BAA.svelte
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 @@ | ||
<script lang="ts"> | ||
import { Box, CardGrid, Heading } from '$lib/components'; | ||
import { Button } from '$lib/elements/forms'; | ||
import BaaModal from './BAAModal.svelte'; | ||
let show = false; | ||
</script> | ||
|
||
<CardGrid> | ||
<div> | ||
<Heading tag="h6" size="7">BAA</Heading> | ||
</div> | ||
<p class="text">After requesting a BAA, we will contact you via email for the next steps.</p> | ||
<svelte:fragment slot="aside"> | ||
<Box> | ||
<h6> | ||
<b>Business Associate Agreement (BAA)</b> | ||
</h6> | ||
<p class="text u-margin-block-start-8"> | ||
A Business Associate Agreement (BAA) is a HIPAA-required document ensuring outside | ||
services handling patient information for a healthcare organization follow privacy | ||
rules. | ||
</p> | ||
<Button | ||
secondary | ||
external | ||
class="u-margin-block-start-16" | ||
on:click={() => (show = true)} | ||
event="request_baa"> | ||
<span class="text">Request BAA</span> | ||
</Button> | ||
</Box> | ||
</svelte:fragment> | ||
</CardGrid> | ||
|
||
<BaaModal bind:show /> |
Oops, something went wrong.