diff --git a/assets/javascripts/discourse/components/ai-llm-editor.gjs b/assets/javascripts/discourse/components/ai-llm-editor.gjs index ea89fc2b..cfc5a4a3 100644 --- a/assets/javascripts/discourse/components/ai-llm-editor.gjs +++ b/assets/javascripts/discourse/components/ai-llm-editor.gjs @@ -6,6 +6,7 @@ import { action } from "@ember/object"; import { LinkTo } from "@ember/routing"; import { later } from "@ember/runloop"; import { inject as service } from "@ember/service"; +import { or } from "truth-helpers"; import BackButton from "discourse/components/back-button"; import DButton from "discourse/components/d-button"; import DToggleSwitch from "discourse/components/d-toggle-switch"; @@ -149,7 +150,7 @@ export default class AiLlmEditor extends Component { @route="adminPlugins.show.discourse-ai-llms" @label="discourse_ai.llms.back" /> - {{#unless @model.url_editable}} + {{#unless (or @model.url_editable @model.isNew)}}