mirror of https://github.com/zlatinb/muwire
compose action
parent
60c90475b4
commit
5d7ccce8fc
|
@ -785,7 +785,10 @@ class MainFrameController {
|
||||||
|
|
||||||
@ControllerAction
|
@ControllerAction
|
||||||
void messageCompose() {
|
void messageCompose() {
|
||||||
|
def params = [:]
|
||||||
|
params.recipients = new HashSet<>()
|
||||||
|
params.core = core
|
||||||
|
mvcGroup.createMVCGroup("new-message", UUID.randomUUID().toString(), params)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ControllerAction
|
@ControllerAction
|
||||||
|
|
|
@ -719,7 +719,7 @@ class MainFrameView {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
panel(constraints : BorderLayout.SOUTH) {
|
panel(constraints : BorderLayout.SOUTH) {
|
||||||
button(text : trans("COMPOSE"), enabled : bind{model.messageButtonsEnabled}, messageComposeAction)
|
button(text : trans("COMPOSE"), messageComposeAction)
|
||||||
button(text : trans("REPLY"), enabled : bind{model.messageButtonsEnabled}, messageReplyAction)
|
button(text : trans("REPLY"), enabled : bind{model.messageButtonsEnabled}, messageReplyAction)
|
||||||
button(text : trans("DELETE"), enabled : bind{model.messageButtonsEnabled}, messageDeleteAction)
|
button(text : trans("DELETE"), enabled : bind{model.messageButtonsEnabled}, messageDeleteAction)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue