mirror of
https://github.com/discourse/discourse.git
synced 2025-01-17 07:42:56 +08:00
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");
|
||
|
}
|
||
|
}
|