Oscar jinxed

This commit is contained in:
2024-12-11 15:08:16 +01:00
parent 7c61b2a532
commit 9a8be0409a
6 changed files with 55 additions and 9 deletions

View File

@@ -131,6 +131,18 @@ ColumnLayout
Layout.fillWidth: true
}
Label
{
text: qsTr("Handy")
Layout.alignment: Qt.AlignRight | Qt.AlignVCenter
}
TextField
{
property string name: "cellphone"
id: cellphone
Layout.fillWidth: true
}
Label
{
text: qsTr("E-Mail")
@@ -241,8 +253,8 @@ ColumnLayout
if (!checkAddContact.checked)
{
new_business = JsLib.addBusiness(businessGrid)
bm.addBusiness(new_business)
appLoader.source = "CustomerTables.qml"
business_model.addBusiness(new_business)
appLoader.source = "CustomerTable.qml"
}
else
{
@@ -252,9 +264,9 @@ ColumnLayout
var new_contact = JsLib.addBusiness(addContactLayout)
// bm.setContact(new_contact, contact_id)
// bm.addBusiness(new_business, contact_id)
contact_model.getContacts()
appLoader.source = "CustomerTables.qml"
contact_id = contact_model.addContact(new_contact)
console.log(contact_id)
appLoader.source = "CustomerTable.qml"
}
}