mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-04-22 06:02:03 +02:00
swarmdetailspanel: reorder tabbar options
Change-Id: Idf6e9c41148b29b3d3a31ecc3b3ae55c551433bf GitLab: #1231
This commit is contained in:
parent
532bf6c4ad
commit
cb0e45c3fa
2 changed files with 6 additions and 7 deletions
|
@ -836,7 +836,6 @@ Item {
|
||||||
property string about: qsTr("About")
|
property string about: qsTr("About")
|
||||||
property string members: qsTr("%1 Members")
|
property string members: qsTr("%1 Members")
|
||||||
property string member: qsTr("Member")
|
property string member: qsTr("Member")
|
||||||
property string documents: qsTr("Documents")
|
|
||||||
property string swarmName: qsTr("Swarm's name")
|
property string swarmName: qsTr("Swarm's name")
|
||||||
property string contactName: qsTr("Contact's name")
|
property string contactName: qsTr("Contact's name")
|
||||||
property string addADescription: qsTr("Add a description")
|
property string addADescription: qsTr("Add a description")
|
||||||
|
|
|
@ -167,11 +167,11 @@ Rectangle {
|
||||||
function addRemoveButtons() {
|
function addRemoveButtons() {
|
||||||
if (CurrentConversation.isCoreDialog) {
|
if (CurrentConversation.isCoreDialog) {
|
||||||
if (tabBar.contentChildren.length === 3)
|
if (tabBar.contentChildren.length === 3)
|
||||||
tabBar.removeItem(tabBar.itemAt(1));
|
tabBar.removeItem(tabBar.itemAt(0));
|
||||||
} else {
|
} else {
|
||||||
if (tabBar.contentChildren.length === 2) {
|
if (tabBar.contentChildren.length === 2) {
|
||||||
const obj = membersTabButtonComp.createObject(tabBar);
|
const obj = membersTabButtonComp.createObject(tabBar);
|
||||||
tabBar.insertItem(1, obj);
|
tabBar.insertItem(0, obj);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -201,9 +201,9 @@ Rectangle {
|
||||||
}
|
}
|
||||||
|
|
||||||
DetailsTabButton {
|
DetailsTabButton {
|
||||||
id: documentsTabButton
|
id: filesTabButton
|
||||||
objectName: "documents"
|
objectName: "files"
|
||||||
labelText: JamiStrings.documents
|
labelText: JamiStrings.files
|
||||||
}
|
}
|
||||||
|
|
||||||
DetailsTabButton {
|
DetailsTabButton {
|
||||||
|
@ -658,7 +658,7 @@ Rectangle {
|
||||||
DocumentsScrollview {
|
DocumentsScrollview {
|
||||||
id: documents
|
id: documents
|
||||||
|
|
||||||
visible: tabBar.currentItemName === "documents"
|
visible: tabBar.currentItemName === "files"
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue