mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 02:43:42 +08:00
15 lines
308 B
JavaScript
15 lines
308 B
JavaScript
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);
|
|
}
|
|
}
|
|
});
|