mirror of https://github.com/Chocobozzz/PeerTube
Cleanup input switch
parent
f3907ceeaf
commit
13b78db38e
|
@ -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)
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
@ -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>
|
|
||||||
|
|
Loading…
Reference in New Issue