mirror of
https://github.com/correl/mage.git
synced 2025-01-11 11:05:23 +00:00
Implemented Issue#166: Allow table creator to remove table - added remove action also for watch/replay state
This commit is contained in:
parent
4adb63cc7a
commit
67fcf4a911
1 changed files with 8 additions and 0 deletions
|
@ -639,8 +639,16 @@ class TableTableModel extends AbstractTableModel {
|
|||
}
|
||||
return "Join";
|
||||
case DUELING:
|
||||
owner = tables[arg0].getControllerName();
|
||||
if (session != null && owner.equals(session.getUserName())) {
|
||||
return "Remove";
|
||||
}
|
||||
return "Watch";
|
||||
case FINISHED:
|
||||
owner = tables[arg0].getControllerName();
|
||||
if (session != null && owner.equals(session.getUserName())) {
|
||||
return "Remove";
|
||||
}
|
||||
return "Replay";
|
||||
default:
|
||||
return "";
|
||||
|
|
Loading…
Reference in a new issue