mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 01:21:35 +08:00
be354e7950
This commit was generated using the ember-native-class-codemod along with a handful of manual updates
23 lines
625 B
JavaScript
23 lines
625 B
JavaScript
import { action } from "@ember/object";
|
|
import Controller from "@ember/controller";
|
|
import ScreenedUrl from "admin/models/screened-url";
|
|
import { exportEntity } from "discourse/lib/export-csv";
|
|
import { outputExportResult } from "discourse/lib/export-result";
|
|
|
|
export default class AdminLogsScreenedUrlsController extends Controller {
|
|
loading = false;
|
|
|
|
show() {
|
|
this.set("loading", true);
|
|
ScreenedUrl.findAll().then((result) => {
|
|
this.set("model", result);
|
|
this.set("loading", false);
|
|
});
|
|
}
|
|
|
|
@action
|
|
exportScreenedUrlList() {
|
|
exportEntity("screened_url").then(outputExportResult);
|
|
}
|
|
}
|