mirror of
https://github.com/aaif-goose/goose.git
synced 2026-07-03 14:10:03 +02:00
fix: no need for cancel (#462)
This commit is contained in:
@@ -78,14 +78,6 @@ export default function GooseResponseForm({ message, metadata, append }: GooseRe
|
||||
append(message);
|
||||
};
|
||||
|
||||
const handleCancel = () => {
|
||||
const message = {
|
||||
content: "No - do not execute this plan",
|
||||
role: "user",
|
||||
};
|
||||
append(message);
|
||||
};
|
||||
|
||||
const handleSubmit = () => {
|
||||
if (selectedOption !== null) {
|
||||
const message = {
|
||||
@@ -108,14 +100,6 @@ export default function GooseResponseForm({ message, metadata, append }: GooseRe
|
||||
<GPSIcon size={14} />
|
||||
Take flight with this plan
|
||||
</Button>
|
||||
<Button
|
||||
onClick={handleCancel}
|
||||
variant="destructive"
|
||||
className="w-full sm:w-auto dark:bg-button-destructive-dark"
|
||||
>
|
||||
<GPSIcon size={14} />
|
||||
Cancel
|
||||
</Button>
|
||||
</div>
|
||||
)}
|
||||
{isQuestion && isOptions && options.length > 0 && (
|
||||
|
||||
Reference in New Issue
Block a user