fixes button
This commit is contained in:
@@ -17,6 +17,7 @@ Dialog {
|
||||
urlF.text = ""
|
||||
successF.text = ""
|
||||
errorF.text = "Ошибка"
|
||||
pendingF.text = "..."
|
||||
colorF.text = "#7b007b"
|
||||
iconCombo.model = btnController.listIcons()
|
||||
iconCombo.currentIndex = 0
|
||||
@@ -32,6 +33,7 @@ Dialog {
|
||||
urlF.text = o.actionUrl
|
||||
successF.text = o.successText
|
||||
errorF.text = o.errorText
|
||||
pendingF.text = o.pendingText || "..."
|
||||
colorF.text = o.btnColor || "#7b007b"
|
||||
iconCombo.model = btnController.listIcons()
|
||||
var ip = o.iconPath || ""
|
||||
@@ -90,6 +92,11 @@ Dialog {
|
||||
Layout.fillWidth: true
|
||||
placeholderText: "Текст ошибки"
|
||||
}
|
||||
TextField {
|
||||
id: pendingF
|
||||
Layout.fillWidth: true
|
||||
placeholderText: "Текст ожидания"
|
||||
}
|
||||
RowLayout {
|
||||
Layout.fillWidth: true
|
||||
Text { text: "Цвет:"; color: settingsContainer.darkMode ? "white" : "black" }
|
||||
@@ -142,13 +149,13 @@ Dialog {
|
||||
if (editId === "") {
|
||||
btnController.addButton(labelF.text, iconCombo.currentText,
|
||||
typeCombo.currentText, urlF.text,
|
||||
successF.text, errorF.text, colorF.text,
|
||||
mode, hold)
|
||||
successF.text, errorF.text, pendingF.text,
|
||||
colorF.text, mode, hold)
|
||||
} else {
|
||||
btnController.updateButton(editId, labelF.text, iconCombo.currentText,
|
||||
typeCombo.currentText, urlF.text,
|
||||
successF.text, errorF.text, colorF.text,
|
||||
mode, hold)
|
||||
successF.text, errorF.text, pendingF.text,
|
||||
colorF.text, mode, hold)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user