last viewed ui impr
This commit is contained in:
@@ -93,6 +93,8 @@ export default class LastViewedSiteNavbarItemView extends SiteNavbarItemView {
|
||||
document.addEventListener('mouseup', this.onMouseUpBind);
|
||||
document.addEventListener('click', this.onClickBind);
|
||||
|
||||
this.element.classList.add('open');
|
||||
|
||||
await view.processFetch();
|
||||
}
|
||||
|
||||
@@ -104,6 +106,8 @@ export default class LastViewedSiteNavbarItemView extends SiteNavbarItemView {
|
||||
this.getView('panel').remove();
|
||||
}
|
||||
|
||||
this.element.classList.remove('open');
|
||||
|
||||
this.panelElement?.parentElement?.removeChild(this.panelElement);
|
||||
|
||||
document.removeEventListener('mouseup', this.onMouseUpBind);
|
||||
|
||||
Reference in New Issue
Block a user