fix: append (Clone) to cloned prompt title and clone to prompt id
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
export let onSubmit: Function;
|
||||
export let edit = false;
|
||||
export let prompt = null;
|
||||
export let clone = false;
|
||||
|
||||
const i18n = getContext('i18n');
|
||||
|
||||
@@ -68,8 +69,8 @@
|
||||
if (prompt) {
|
||||
title = prompt.title;
|
||||
await tick();
|
||||
|
||||
command = prompt.command.at(0) === '/' ? prompt.command.slice(1) : prompt.command;
|
||||
hasManualEdit = true;
|
||||
content = prompt.content;
|
||||
|
||||
accessControl = prompt?.access_control === undefined ? {} : prompt?.access_control;
|
||||
|
||||
Reference in New Issue
Block a user