Skip to content

Commit

Permalink
Cleanup input switch
Browse files Browse the repository at this point in the history
  • Loading branch information
Chocobozzz committed Nov 27, 2023
1 parent f3907ce commit 13b78db
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion client/e2e/src/suites-local/signup.e2e-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function checkEndMessage (options: {
}

{
const checkEmail = 'Check your emails'
const checkEmail = 'Check your email'

if (requiresEmailVerification) {
expect(message).toContain(checkEmail)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export class MyAccountSettingsComponent implements OnInit, AfterViewChecked {

ngAfterViewChecked () {
if (window.location.hash && window.location.hash !== this.lastScrollHash) {
// this.viewportScroller.scrollToAnchor(window.location.hash.replace('#', ''))
this.viewportScroller.scrollToAnchor(window.location.hash.replace('#', ''))

this.lastScrollHash = window.location.hash
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
<div class="root">
<input type="checkbox" role="switch" [checked]="checked" [name]="inputName" [id]="inputName" (change)="update()" [disabled]="preventUpdate" />
<label [for]="inputName" class="ms-auto">{{ label }}</label>
</div>
<input type="checkbox" role="switch" [checked]="checked" [name]="inputName" [id]="inputName" (change)="update()" [disabled]="preventUpdate" />
<label [for]="inputName" class="ms-auto">{{ label }}</label>

0 comments on commit 13b78db

Please sign in to comment.