From cb0e45c3faf4c6327ea280880f3ea5506a552cc8 Mon Sep 17 00:00:00 2001 From: Aline Gondim Santos <aline.gondimsantos@savoirfairelinux.com> Date: Thu, 29 Jun 2023 16:12:13 -0300 Subject: [PATCH] swarmdetailspanel: reorder tabbar options Change-Id: Idf6e9c41148b29b3d3a31ecc3b3ae55c551433bf GitLab: #1231 --- src/app/constant/JamiStrings.qml | 1 - src/app/mainview/components/SwarmDetailsPanel.qml | 12 ++++++------ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/app/constant/JamiStrings.qml b/src/app/constant/JamiStrings.qml index 39ed2aa65..11b8c371f 100644 --- a/src/app/constant/JamiStrings.qml +++ b/src/app/constant/JamiStrings.qml @@ -836,7 +836,6 @@ Item { property string about: qsTr("About") property string members: qsTr("%1 Members") property string member: qsTr("Member") - property string documents: qsTr("Documents") property string swarmName: qsTr("Swarm's name") property string contactName: qsTr("Contact's name") property string addADescription: qsTr("Add a description") diff --git a/src/app/mainview/components/SwarmDetailsPanel.qml b/src/app/mainview/components/SwarmDetailsPanel.qml index f85ab0ccf..adad95da0 100644 --- a/src/app/mainview/components/SwarmDetailsPanel.qml +++ b/src/app/mainview/components/SwarmDetailsPanel.qml @@ -167,11 +167,11 @@ Rectangle { function addRemoveButtons() { if (CurrentConversation.isCoreDialog) { if (tabBar.contentChildren.length === 3) - tabBar.removeItem(tabBar.itemAt(1)); + tabBar.removeItem(tabBar.itemAt(0)); } else { if (tabBar.contentChildren.length === 2) { const obj = membersTabButtonComp.createObject(tabBar); - tabBar.insertItem(1, obj); + tabBar.insertItem(0, obj); } } } @@ -201,9 +201,9 @@ Rectangle { } DetailsTabButton { - id: documentsTabButton - objectName: "documents" - labelText: JamiStrings.documents + id: filesTabButton + objectName: "files" + labelText: JamiStrings.files } DetailsTabButton { @@ -658,7 +658,7 @@ Rectangle { DocumentsScrollview { id: documents - visible: tabBar.currentItemName === "documents" + visible: tabBar.currentItemName === "files" anchors.fill: parent } } -- GitLab