-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
51 additions
and
21 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<div class="flex flex-col gap-4"> | ||
<h1 class="text-3xl font-bold">Settings</h1> | ||
<div class="sm:w-2/3 w-full flex flex-col gap-3"> | ||
<h2 class="text-lg font-semibold">Notifications</h2> | ||
<div class="flex flex-row items-center justify-between"> | ||
<span class="flex-col items-center"> | ||
<h3>Email notifications</h3> | ||
<label hlmLabel class="font-light"> Receive email notifications for newly detected bad practices and reminders. </label> | ||
</span> | ||
<hlm-switch class="mr-2" [formControl]="_newNotificationEnabled" /> | ||
</div> | ||
<button hlmBtn variant="outline" class="w-full" (click)="saveSettings()">Save settings</button> | ||
</div> | ||
<hlm-alert-dialog> | ||
<button id="edit-profile" variant="outline" brnAlertDialogTrigger hlmBtn>Delete Account</button> | ||
<hlm-alert-dialog-content *brnAlertDialogContent="let ctx"> | ||
<hlm-alert-dialog-header> | ||
<h3 hlmAlertDialogTitle>Are you absolutely sure?</h3> | ||
<p hlmAlertDialogDescription>This action cannot be undone. This will permanently delete your account and remove your data from our servers.</p> | ||
</hlm-alert-dialog-header> | ||
<hlm-alert-dialog-footer> | ||
<button hlmAlertDialogCancel (click)="ctx.close()">Cancel</button> | ||
<button hlmAlertDialogAction (click)="deleteAccount()">Delete account</button> | ||
</hlm-alert-dialog-footer> | ||
</hlm-alert-dialog-content> | ||
</hlm-alert-dialog> | ||
</div> |
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