mirror of https://github.com/zlatinb/muwire
copy-full-id button in the browse files view, GitHub issue #81
parent
41dc8ab0e6
commit
8216cbc0f3
|
@ -208,4 +208,9 @@ class BrowseController {
|
|||
params['host'] = event.sender
|
||||
mvcGroup.parentGroup.createMVCGroup("collection-tab", uuid.toString(), params)
|
||||
}
|
||||
|
||||
@ControllerAction
|
||||
void copyId() {
|
||||
CopyPasteSupport.copyToClipboard(model.host.toBase64())
|
||||
}
|
||||
}
|
|
@ -54,9 +54,18 @@ class BrowseView {
|
|||
p = builder.panel {
|
||||
borderLayout()
|
||||
panel (constraints : BorderLayout.NORTH) {
|
||||
label(text: trans("STATUS") + ":")
|
||||
label(text: bind {trans(model.status.name())})
|
||||
label(text : bind {model.totalResults == 0 ? "" : Math.round(model.resultCount * 100 / model.totalResults)+ "%"})
|
||||
borderLayout()
|
||||
panel(constraints: BorderLayout.CENTER) {
|
||||
label(text: trans("STATUS") + ":")
|
||||
label(text: bind { trans(model.status.name()) })
|
||||
label(text: bind {
|
||||
model.totalResults == 0 ? "" :
|
||||
"$model.resultCount/$model.totalResults (" + Math.round(model.resultCount * 100 / model.totalResults)+ "%)"
|
||||
})
|
||||
}
|
||||
panel(constraints: BorderLayout.EAST) {
|
||||
button(text: trans("COPY_FULL_ID"), copyIdAction)
|
||||
}
|
||||
}
|
||||
resultsPanel = panel(constraints: BorderLayout.CENTER) {
|
||||
cardLayout()
|
||||
|
|
Loading…
Reference in New Issue