on xenial help sign in
Keep the button disabled when the requirements are not met
213de40Andrea Cimitan
qml/Dash/Previews/PreviewRatingInput.qml+1−1
@@ -171,7 +171,7 @@ PreviewWidget {
171 top: parent.top
171 top: parent.top
172 right: parent.right
172 right: parent.right
173 }
173 }
174− color: readyToSubmit ? theme.palette.selected.base : theme.palette.normal.base
174+ enabled: readyToSubmit
175 text: widgetData["submit-label"] || i18n.tr("Send")
175 text: widgetData["submit-label"] || i18n.tr("Send")
176 onClicked: {
176 onClicked: {
177 if (readyToSubmit) root.submit()
177 if (readyToSubmit) root.submit()