mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 09:42:07 +08:00
15 lines
310 B
JavaScript
15 lines
310 B
JavaScript
import Controller from "@ember/controller";
|
|
import { popupAjaxError } from "discourse/lib/ajax-error";
|
|
|
|
export default Controller.extend({
|
|
actions: {
|
|
revokeKey(key) {
|
|
key.revoke().catch(popupAjaxError);
|
|
},
|
|
|
|
undoRevokeKey(key) {
|
|
key.undoRevoke().catch(popupAjaxError);
|
|
},
|
|
},
|
|
});
|