removed Terms of Use dialog, as the user agrees to them on registration now.

This commit is contained in:
Dorian Zedler 2019-02-16 17:59:42 +01:00
parent f4be235efe
commit fd7396d8a0

View file

@ -54,7 +54,8 @@ Page {
height: mainMenu.buttonHeight
onClicked: {
eventConfirmationDialog.openDay( 0 )
formStack.eventDay = 0
formStack.push(eventForm)
}
}
@ -67,47 +68,9 @@ Page {
height: mainMenu.buttonHeight
onClicked: {
eventConfirmationDialog.openDay( 1 )
}
}
Dialog {
property string day
id: eventConfirmationDialog
modal: true
focus: true
title: "Bedingung"
x: (app.width - eventConfirmationDialog.width) / 2
y: (app.height - eventConfirmationDialog.height) / 2
parent: Overlay.overlay
width: Math.min(root.width, root.height) / 3 * 2
contentHeight: aboutColumn.height
standardButtons: Dialog.Ok | Dialog.Cancel
onAccepted: {
formStack.eventDay = day
formStack.eventDay = 0
formStack.push(eventForm)
}
Column {
id: aboutColumn
spacing: 20
Label {
id: text
visible: true
width: eventConfirmationDialog.availableWidth
wrapMode: Label.Wrap
text: "Vertretungsplan, vertraulich, nur zum persönlichen Gebrauch, keine Speicherung!"
}
}
function openDay(day){
eventConfirmationDialog.day = day
eventConfirmationDialog.open()
}
}
}