[sailfish] Disabled label changes while network is loading
This commit is contained in:
parent
1abbd9ecc6
commit
923fe408b1
2 changed files with 3 additions and 1 deletions
|
|
@ -63,6 +63,7 @@ Page {
|
|||
}
|
||||
MenuItem {
|
||||
text: qsTr("Assign Labels")
|
||||
enabled: !network.loading
|
||||
onClicked: {
|
||||
feedItemModel.getLabels(function(successful, errorMessage,
|
||||
labels) {
|
||||
|
|
|
|||
|
|
@ -64,13 +64,14 @@ Page {
|
|||
|
||||
delegate: ListItem {
|
||||
id: item
|
||||
|
||||
width: parent.width
|
||||
|
||||
property var label: page.labels[index]
|
||||
|
||||
Switch {
|
||||
id: checkbox
|
||||
checked: item.label.checked
|
||||
enabled: !network.loading
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
|
||||
property bool noAPIcall: false
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue