Implemented Issue#166: Allow table creator to remove table - added remove action also for watch/replay state

This commit is contained in:
magenoxx 2013-03-20 08:29:57 +04:00
parent 4adb63cc7a
commit 67fcf4a911

View file

@ -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 "";