mirror of
https://github.com/discourse/discourse.git
synced 2025-01-17 05:42:44 +08:00
407fa69778
Conversion of /admin/customize/embedding page to follow admin UX guidelines.
16 lines
438 B
JavaScript
16 lines
438 B
JavaScript
import DiscourseRoute from "discourse/routes/discourse";
|
|
import { i18n } from "discourse-i18n";
|
|
|
|
export default class AdminEmbeddingEditRoute extends DiscourseRoute {
|
|
async model(params) {
|
|
const embedding = await this.store.find("embedding");
|
|
return embedding.embeddable_hosts.find(
|
|
(host) => host.id === parseInt(params.id, 10)
|
|
);
|
|
}
|
|
|
|
titleToken() {
|
|
return i18n("admin.embedding.host_form.edit_header");
|
|
}
|
|
}
|