2019-11-05 09:10:23 -05:00
|
|
|
import { popupAjaxError } from "discourse/lib/ajax-error";
|
2020-02-05 11:14:42 -05:00
|
|
|
import Controller from "@ember/controller";
|
2019-11-05 09:10:23 -05:00
|
|
|
|
2020-02-05 11:14:42 -05:00
|
|
|
export default Controller.extend({
|
2019-11-05 09:10:23 -05:00
|
|
|
actions: {
|
|
|
|
revokeKey(key) {
|
|
|
|
key.revoke().catch(popupAjaxError);
|
|
|
|
},
|
|
|
|
|
|
|
|
undoRevokeKey(key) {
|
|
|
|
key.undoRevoke().catch(popupAjaxError);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
});
|