Cleanup input switch

pull/6064/head
Chocobozzz 2023-11-27 10:11:20 +01:00
parent f3907ceeaf
commit 13b78db38e
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
3 changed files with 4 additions and 6 deletions

View File

@ -35,7 +35,7 @@ function checkEndMessage (options: {
} }
{ {
const checkEmail = 'Check your emails' const checkEmail = 'Check your email'
if (requiresEmailVerification) { if (requiresEmailVerification) {
expect(message).toContain(checkEmail) expect(message).toContain(checkEmail)

View File

@ -32,7 +32,7 @@ export class MyAccountSettingsComponent implements OnInit, AfterViewChecked {
ngAfterViewChecked () { ngAfterViewChecked () {
if (window.location.hash && window.location.hash !== this.lastScrollHash) { 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 this.lastScrollHash = window.location.hash
} }

View File

@ -1,4 +1,2 @@
<div class="root"> <input type="checkbox" role="switch" [checked]="checked" [name]="inputName" [id]="inputName" (change)="update()" [disabled]="preventUpdate" />
<input type="checkbox" role="switch" [checked]="checked" [name]="inputName" [id]="inputName" (change)="update()" [disabled]="preventUpdate" /> <label [for]="inputName" class="ms-auto">{{ label }}</label>
<label [for]="inputName" class="ms-auto">{{ label }}</label>
</div>