mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-22 22:36:11 +08:00
The actions are defined on the `AdminUsersIndexRoute` when it should be the `AdminUsersRoute` as the action is called from the `admin/users` template.
10 lines
309 B
JavaScript
Vendored
10 lines
309 B
JavaScript
Vendored
import { action } from "@ember/object";
|
|
import DiscourseRoute from "discourse/routes/discourse";
|
|
import AdminUser from "admin/models/admin-user";
|
|
|
|
export default class AdminUsersListRoute extends DiscourseRoute {
|
|
@action
|
|
deleteUser(user) {
|
|
AdminUser.create(user).destroy({ deletePosts: true });
|
|
}
|
|
}
|