mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 14:12:10 +08:00
Rename .js.es6
to .js
in the admin application
This commit is contained in:
@ -0,0 +1,14 @@
|
||||
import { popupAjaxError } from "discourse/lib/ajax-error";
|
||||
import Controller from "@ember/controller";
|
||||
|
||||
export default Controller.extend({
|
||||
actions: {
|
||||
revokeKey(key) {
|
||||
key.revoke().catch(popupAjaxError);
|
||||
},
|
||||
|
||||
undoRevokeKey(key) {
|
||||
key.undoRevoke().catch(popupAjaxError);
|
||||
}
|
||||
}
|
||||
});
|
Reference in New Issue
Block a user