on xenial help sign in
Keep the button disabled when the requirements are not met
commit213de400c2d1a9dd2694d828f84d40da8fabd35d authorAndrea Cimitan <andrea.cimitan@gmail.com> dateFri 20 May 2016, 15:19 (10 years ago) parentdf5c24f
1 file changed+1−1
qml/Dash/Previews/PreviewRatingInput.qml+1−1
qml/Dash/Previews/PreviewRatingInput.qml+1−1
@@ -171,7 +171,7 @@ PreviewWidget {
171171 top: parent.top
172172 right: parent.right
173173 }
174− color: readyToSubmit ? theme.palette.selected.base : theme.palette.normal.base
174+ enabled: readyToSubmit
175175 text: widgetData["submit-label"] || i18n.tr("Send")
176176 onClicked: {
177177 if (readyToSubmit) root.submit()