mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 09:23:13 +08:00
14 lines
270 B
Plaintext
14 lines
270 B
Plaintext
|
import { popupAjaxError } from "discourse/lib/ajax-error";
|
||
|
|
||
|
export default Ember.Controller.extend({
|
||
|
actions: {
|
||
|
revokeKey(key) {
|
||
|
key.revoke().catch(popupAjaxError);
|
||
|
},
|
||
|
|
||
|
undoRevokeKey(key) {
|
||
|
key.undoRevoke().catch(popupAjaxError);
|
||
|
}
|
||
|
}
|
||
|
});
|