channel freeze menu items only enabled when channel is open
This commit is contained in:
@@ -65,17 +65,17 @@ Pane {
|
|||||||
MenuItem {
|
MenuItem {
|
||||||
icon.color: 'transparent'
|
icon.color: 'transparent'
|
||||||
action: Action {
|
action: Action {
|
||||||
|
enabled: channeldetails.isOpen
|
||||||
text: channeldetails.frozenForSending ? qsTr('Unfreeze (for sending)') : qsTr('Freeze (for sending)')
|
text: channeldetails.frozenForSending ? qsTr('Unfreeze (for sending)') : qsTr('Freeze (for sending)')
|
||||||
onTriggered: channeldetails.freezeForSending()
|
onTriggered: channeldetails.freezeForSending()
|
||||||
//icon.source: '../../icons/wallet.png'
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
MenuItem {
|
MenuItem {
|
||||||
icon.color: 'transparent'
|
icon.color: 'transparent'
|
||||||
action: Action {
|
action: Action {
|
||||||
|
enabled: channeldetails.isOpen
|
||||||
text: channeldetails.frozenForReceiving ? qsTr('Unfreeze (for receiving)') : qsTr('Freeze (for receiving)')
|
text: channeldetails.frozenForReceiving ? qsTr('Unfreeze (for receiving)') : qsTr('Freeze (for receiving)')
|
||||||
onTriggered: channeldetails.freezeForReceiving()
|
onTriggered: channeldetails.freezeForReceiving()
|
||||||
//icon.source: '../../icons/wallet.png'
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user