mirror of
https://github.com/discourse/discourse.git
synced 2024-12-27 12:13:51 +08:00
15 lines
363 B
JavaScript
15 lines
363 B
JavaScript
|
import Controller from "@ember/controller";
|
||
|
import { action } from "@ember/object";
|
||
|
|
||
|
export default class AdminWhatsNewController extends Controller {
|
||
|
@action
|
||
|
checkForUpdates() {
|
||
|
this.checkFeaturesCallback?.({ forceRefresh: true });
|
||
|
}
|
||
|
|
||
|
@action
|
||
|
bindCheckFeatures(checkFeaturesCallback) {
|
||
|
this.checkFeaturesCallback = checkFeaturesCallback;
|
||
|
}
|
||
|
}
|