disable trust buttons on action
This commit is contained in:
@@ -191,27 +191,38 @@ class MainFrameController {
|
|||||||
int row = view.getSelectedTrustTablesRow(tableName)
|
int row = view.getSelectedTrustTablesRow(tableName)
|
||||||
if (row < 0)
|
if (row < 0)
|
||||||
return
|
return
|
||||||
|
builder.getVariable(tableName).model.fireTableDataChanged()
|
||||||
core.eventBus.publish(new TrustEvent(persona : list[row], level : level))
|
core.eventBus.publish(new TrustEvent(persona : list[row], level : level))
|
||||||
}
|
}
|
||||||
|
|
||||||
@ControllerAction
|
@ControllerAction
|
||||||
void markTrusted() {
|
void markTrusted() {
|
||||||
markTrust("distrusted-table", TrustLevel.TRUSTED, model.distrusted)
|
markTrust("distrusted-table", TrustLevel.TRUSTED, model.distrusted)
|
||||||
|
model.markTrustedButtonEnabled = false
|
||||||
|
model.markNeutralFromDistrustedButtonEnabled = false
|
||||||
}
|
}
|
||||||
|
|
||||||
@ControllerAction
|
@ControllerAction
|
||||||
void markNeutralFromDistrusted() {
|
void markNeutralFromDistrusted() {
|
||||||
markTrust("distrusted-table", TrustLevel.NEUTRAL, model.distrusted)
|
markTrust("distrusted-table", TrustLevel.NEUTRAL, model.distrusted)
|
||||||
|
model.markTrustedButtonEnabled = false
|
||||||
|
model.markNeutralFromDistrustedButtonEnabled = false
|
||||||
}
|
}
|
||||||
|
|
||||||
@ControllerAction
|
@ControllerAction
|
||||||
void markDistrusted() {
|
void markDistrusted() {
|
||||||
markTrust("trusted-table", TrustLevel.DISTRUSTED, model.trusted)
|
markTrust("trusted-table", TrustLevel.DISTRUSTED, model.trusted)
|
||||||
|
model.subscribeButtonEnabled = false
|
||||||
|
model.markDistrustedButtonEnabled = false
|
||||||
|
model.markNeutralFromTrustedButtonEnabled = false
|
||||||
}
|
}
|
||||||
|
|
||||||
@ControllerAction
|
@ControllerAction
|
||||||
void markNeutralFromTrusted() {
|
void markNeutralFromTrusted() {
|
||||||
markTrust("trusted-table", TrustLevel.NEUTRAL, model.trusted)
|
markTrust("trusted-table", TrustLevel.NEUTRAL, model.trusted)
|
||||||
|
model.subscribeButtonEnabled = false
|
||||||
|
model.markDistrustedButtonEnabled = false
|
||||||
|
model.markNeutralFromTrustedButtonEnabled = false
|
||||||
}
|
}
|
||||||
|
|
||||||
@ControllerAction
|
@ControllerAction
|
||||||
@@ -223,6 +234,9 @@ class MainFrameController {
|
|||||||
core.muOptions.trustSubscriptions.add(p)
|
core.muOptions.trustSubscriptions.add(p)
|
||||||
saveMuWireSettings()
|
saveMuWireSettings()
|
||||||
core.eventBus.publish(new TrustSubscriptionEvent(persona : p, subscribe : true))
|
core.eventBus.publish(new TrustSubscriptionEvent(persona : p, subscribe : true))
|
||||||
|
model.subscribeButtonEnabled = false
|
||||||
|
model.markDistrustedButtonEnabled = false
|
||||||
|
model.markNeutralFromTrustedButtonEnabled = false
|
||||||
}
|
}
|
||||||
|
|
||||||
@ControllerAction
|
@ControllerAction
|
||||||
|
Reference in New Issue
Block a user