remove commit button if a user is removed
This commit is contained in:
@@ -257,6 +257,8 @@ define([
|
|||||||
Cryptpad.confirm("Are you sure you'd like to remove this user?", // TODO translate
|
Cryptpad.confirm("Are you sure you'd like to remove this user?", // TODO translate
|
||||||
function (yes) {
|
function (yes) {
|
||||||
if (!yes) { return; }
|
if (!yes) { return; }
|
||||||
|
// remove commit button, and anything else...
|
||||||
|
makeUserEditable(id, false);
|
||||||
removeColumn(proxy, id);
|
removeColumn(proxy, id);
|
||||||
table.removeColumn(id);
|
table.removeColumn(id);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user