mirror of
https://github.com/Qortal/qortal-ui.git
synced 2025-02-11 17:55:51 +00:00
change currentTab when removing tab
This commit is contained in:
parent
1d30285d7e
commit
3d55d24377
@ -432,7 +432,9 @@ class ShowPlugin extends connect(store)(LitElement) {
|
||||
<div
|
||||
id="tab-${tab.id}"
|
||||
class="tab ${this.currentTab === index ? 'active' : ''}"
|
||||
@click="${() => this.currentTab = index}"
|
||||
@click="${() => {
|
||||
this.currentTab = index
|
||||
}}"
|
||||
>
|
||||
<div id="icon-${tab.id}" class="${this.currentTab === index ? "iconActive" : "iconInactive"}">
|
||||
<mwc-icon>${icon}</mwc-icon>
|
||||
@ -671,7 +673,7 @@ class ShowPlugin extends connect(store)(LitElement) {
|
||||
let iconId = ''
|
||||
|
||||
this.tabs = this.tabs.filter((tab, tIndex) => tIndex !== index)
|
||||
|
||||
this.currentTab = this.tabs.length - 1;
|
||||
|
||||
const tabD = this.tabs.length - 1
|
||||
const plugObj = this.tabs[tabD].url
|
||||
|
Loading…
x
Reference in New Issue
Block a user