Skip to content
Snippets Groups Projects
Commit a5bf2584 authored by Aline Gondim Santos's avatar Aline Gondim Santos Committed by Sébastien Blin
Browse files

swarmdetailspanel: always open on first tab option

Change-Id: If04bdf1b1398c04cdd980d28e0ee594b225ebc3d
GitLab: #1231
parent 3b85425a
No related branches found
No related tags found
No related merge requests found
......@@ -177,13 +177,16 @@ Rectangle {
function addRemoveButtons() {
if (CurrentConversation.isCoreDialog) {
if (tabBar.contentChildren.length === 3)
if (tabBar.contentChildren.length === 3) {
tabBar.setCurrentIndex(1);
tabBar.removeItem(tabBar.itemAt(0));
}
} else {
if (tabBar.contentChildren.length === 2) {
const obj = membersTabButtonComp.createObject(tabBar);
tabBar.insertItem(0, obj);
}
tabBar.setCurrentIndex(0);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment