In this feature update, we add the UI for the ability to easily configure persona backed AI-features. The feature will still be hidden until structured responses are complete.
25 lines
696 B
Plaintext
25 lines
696 B
Plaintext
import RouteTemplate from "ember-route-template";
|
|
import BackButton from "discourse/components/back-button";
|
|
import SiteSettingComponent from "admin/components/site-setting";
|
|
|
|
export default RouteTemplate(
|
|
<template>
|
|
<BackButton
|
|
@route="adminPlugins.show.discourse-ai-features"
|
|
@label="discourse_ai.features.back"
|
|
/>
|
|
<section class="ai-feature-editor__header">
|
|
<h2>{{@model.name}}</h2>
|
|
<p>{{@model.description}}</p>
|
|
</section>
|
|
|
|
<section class="ai-feature-editor">
|
|
{{#each @model.feature_settings as |setting|}}
|
|
<div>
|
|
<SiteSettingComponent @setting={{setting}} />
|
|
</div>
|
|
{{/each}}
|
|
</section>
|
|
</template>
|
|
);
|