A lot of changes going on
This commit is contained in:
@@ -2,7 +2,7 @@ import QtQuick
|
||||
import QtQuick.Layouts
|
||||
import QtQuick.Controls
|
||||
import QtQuick.Dialogs
|
||||
import "../js/qmldict.js" as JsLib
|
||||
import Js
|
||||
|
||||
ColumnLayout
|
||||
{
|
||||
@@ -70,8 +70,13 @@ ColumnLayout
|
||||
text: qsTr("Speichern")
|
||||
enabled: false
|
||||
onClicked:
|
||||
|
||||
{
|
||||
|
||||
new_object = JsLib.parseForm(newObject)
|
||||
// For Debugging
|
||||
console.log(JSON.stringify(new_object))
|
||||
//
|
||||
new_object['lift'] = new_object['lift'] === 'Ja' ? 1 : 0
|
||||
new_object['mezzanin'] = new_object['mezzanin'] === 'Ja' ? 1 : 0
|
||||
object_model.addObject(new_object)
|
||||
|
||||
Reference in New Issue
Block a user