added button to unlock icons, fix #489

This commit is contained in:
Nicolas Constant 2023-08-20 02:33:03 -04:00
parent f215d027f9
commit 0305cc6ac7
No known key found for this signature in database
GPG Key ID: 1E9F677FB01A5688
3 changed files with 29 additions and 1 deletions

View File

@ -220,6 +220,9 @@
(change)="onEnableFreezeAvatarChanged()" type="checkbox" name="enableFreezeAvatar"
value="enableFreezeAvatar" id="enableFreezeAvatar">
<label class="noselect sub-section__label" for="enableFreezeAvatar">freeze animated avatar</label>
<br>
reorder account's icons: <a href class="toogle-lock-icon-menu" (click)="toogleLockIconMenu()"><span *ngIf="iconMenuLocked">Unlock Icons</span><span *ngIf="!iconMenuLocked">Lock Icons</span></a>
</div>
<h4 class="panel__subtitle">About</h4>

View File

@ -153,4 +153,22 @@
background-color: #32384d;
}
}
}
.toogle-lock-icon-menu {
display: block;
padding: 3px 40px;
width: 170px;
float: right;
text-align: center;
color: white;
background-color: #1f2330;
&:hover {
text-decoration: none;
background-color: #32384d;
}
}

View File

@ -156,7 +156,14 @@ export class SettingsComponent implements OnInit, OnDestroy {
ngOnDestroy(): void {
if(this.languageSub) this.languageSub.unsubscribe();
}
}
iconMenuLocked = true;
toogleLockIconMenu(): boolean {
this.navigationService.changeIconMenuState(this.iconMenuLocked);
this.iconMenuLocked = ! this.iconMenuLocked;
return false;
}
onSearchLang(input: string) {
this.searchedLangs = this.languageService.searchLanguage(input);