add browse and chat buttons to trusted panel

pull/34/head
Zlatin Balevsky 2019-11-13 19:40:28 +00:00
parent d56f7c6184
commit cacdd2a7a9
2 changed files with 4 additions and 0 deletions

View File

@ -326,6 +326,7 @@ class MainFrameController {
model.subscriptions[row]
}
@ControllerAction
void browseFromTrusted() {
int row = view.getSelectedTrustTablesRow("trusted-table")
if (row < 0)
@ -339,6 +340,7 @@ class MainFrameController {
mvcGroup.createMVCGroup("browse",groupId,params)
}
@ControllerAction
void chatFromTrusted() {
int row = view.getSelectedTrustTablesRow("trusted-table")
if (row < 0)

View File

@ -434,6 +434,8 @@ class MainFrameView {
button(text : "Subscribe", enabled : bind {model.subscribeButtonEnabled}, constraints : gbc(gridx: 0, gridy : 0), subscribeAction)
button(text : "Mark Neutral", enabled : bind {model.markNeutralFromTrustedButtonEnabled}, constraints : gbc(gridx: 1, gridy: 0), markNeutralFromTrustedAction)
button(text : "Mark Distrusted", enabled : bind {model.markDistrustedButtonEnabled}, constraints : gbc(gridx: 2, gridy:0), markDistrustedAction)
button(text : "Browse", constraints:gbc(gridx:3, gridy:0), browseFromTrustedAction)
button(text : "Chat", constraints : gbc(gridx:4, gridy:0), chatFromTrustedAction)
}
}
panel (border : etchedBorder()){