mirror of
https://github.com/zulip/zulip.git
synced 2025-11-14 10:57:58 +00:00
Clean up admin_user_list.handlebars.
The inactive flag wasn't really supported, and the activation_toggle_button class was misleading, since we don't yet toggle in both directions. (imported from commit 0c8511021dd580c86df4e80092a6dd49e32773f9)
This commit is contained in:
@@ -30,7 +30,7 @@ function populate_users () {
|
|||||||
exports.setup_page = function () {
|
exports.setup_page = function () {
|
||||||
populate_users();
|
populate_users();
|
||||||
|
|
||||||
$("#admin_users_table").on("click", ".activation_toggle_button", function (e) {
|
$("#admin_users_table").on("click", ".deactivate", function (e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
|
|
||||||
|
|||||||
@@ -7,15 +7,8 @@
|
|||||||
<span class="email">{{email}}</span>
|
<span class="email">{{email}}</span>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<button class="btn activation_toggle_button btn-danger"
|
<button class="btn deactivate btn-danger">
|
||||||
{{#inactive}}disabled{{/inactive}}
|
|
||||||
type="button" name="activation_toggle">
|
|
||||||
{{#inactive}}
|
|
||||||
Reactivate
|
|
||||||
{{/inactive}}
|
|
||||||
{{^inactive}}
|
|
||||||
Deactivate
|
Deactivate
|
||||||
{{/inactive}}
|
|
||||||
</button>
|
</button>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
Reference in New Issue
Block a user