Added tokelist to user profile.
This commit is contained in:
parent
0b84c51cbf
commit
80f0c5435f
6 changed files with 79 additions and 7 deletions
|
|
@ -155,6 +155,31 @@ class passwordResetPrompt{
|
|||
}
|
||||
}
|
||||
|
||||
class tokeList{
|
||||
constructor(){
|
||||
this.tokeList = document.querySelector('#profile-tokes');
|
||||
this.tokeListLabel = document.querySelector('.profile-toke-count');
|
||||
this.tokeListToggleIcon = document.querySelector('#toggle-toke-list');
|
||||
console.log(this.tokeList)
|
||||
|
||||
this.setupInput();
|
||||
}
|
||||
|
||||
setupInput(){
|
||||
this.tokeListLabel.addEventListener('click', this.toggleTokeList.bind(this));
|
||||
}
|
||||
|
||||
toggleTokeList(){
|
||||
if(this.tokeList.checkVisibility()){
|
||||
this.tokeList.style.display = "none";
|
||||
this.tokeListToggleIcon.classList.replace("bi-caret-down-fill","bi-caret-left-fill");
|
||||
}else{
|
||||
this.tokeList.style.display = "block";
|
||||
this.tokeListToggleIcon.classList.replace("bi-caret-left-fill","bi-caret-down-fill");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class deleteAccountButton{
|
||||
constructor(){
|
||||
this.deleteLink = document.querySelector('#account-settings-delete-button');
|
||||
|
|
@ -197,5 +222,6 @@ class deleteAccountPopup{
|
|||
new profileTextEditPrompt("signature");
|
||||
new profileTextEditPrompt("bio", true);
|
||||
new profileImgEditPrompt();
|
||||
new tokeList();
|
||||
new passwordResetPrompt();
|
||||
new deleteAccountButton();
|
||||
Loading…
Add table
Add a link
Reference in a new issue