You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

18 lines
1.1 KiB

<?xml version="1.0" encoding="UTF-8" ?>
<!-- Replacing the Insert button with the copy button from Systray -->
<templates xml:space="preserve">
<t t-name="easy_chatgpt_access.ChatGPTPromptDialogInherited"
t-inherit="web_editor.ChatGPTPromptDialog"
t-inherit-mode="extension">
<xpath expr="//button[hasclass('o-message-insert')]" position="replace">
<button t-if="message.author === 'assistant' and 'text' in message and message.isError !== true and props.systray.insert"
t-att-data-message-id="message.id"
class="o-message-insert d-block float-end p-1 mb-1 btn btn-info opacity-75 fst-italic ms-3"
t-on-click="insertMessage">Insert</button>
<button t-if="message.author === 'assistant' and 'text' in message and message.isError !== true and !props.systray.insert"
t-att-data-message-id="message.id"
class="o-message-insert d-block float-end p-1 mb-1 btn btn-info opacity-75 fst-italic ms-3"
t-on-click="copyMessage">Copy</button>
</xpath>
</t>
</templates>