Skip to content
Snippets Groups Projects
Commit cb0e45c3 authored by Aline Gondim Santos's avatar Aline Gondim Santos
Browse files

swarmdetailspanel: reorder tabbar options

Change-Id: Idf6e9c41148b29b3d3a31ecc3b3ae55c551433bf
GitLab: #1231
parent 532bf6c4
No related branches found
No related tags found
No related merge requests found
......@@ -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")
......
......@@ -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
}
}
......
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