diff --git a/easy_chatgpt_access/__manifest__.py b/easy_chatgpt_access/__manifest__.py index 4735aa09d..f1d80516e 100644 --- a/easy_chatgpt_access/__manifest__.py +++ b/easy_chatgpt_access/__manifest__.py @@ -43,7 +43,7 @@ 'easy_chatgpt_access/static/src/js/chatgpt_dialog.js', ], }, - 'images': ['static/description/banner.jpg'], + 'images': ['static/description/banner.png'], 'license': 'AGPL-3', 'installable': True, 'auto_install': False, diff --git a/easy_chatgpt_access/static/description/assets/screenshots/1.png b/easy_chatgpt_access/static/description/assets/screenshots/1.png index c1bf3de4a..08693c507 100644 Binary files a/easy_chatgpt_access/static/description/assets/screenshots/1.png and b/easy_chatgpt_access/static/description/assets/screenshots/1.png differ diff --git a/easy_chatgpt_access/static/description/assets/screenshots/2.png b/easy_chatgpt_access/static/description/assets/screenshots/2.png index aac4a1cc7..23201376a 100644 Binary files a/easy_chatgpt_access/static/description/assets/screenshots/2.png and b/easy_chatgpt_access/static/description/assets/screenshots/2.png differ diff --git a/easy_chatgpt_access/static/description/assets/screenshots/3.png b/easy_chatgpt_access/static/description/assets/screenshots/3.png index c7ef20439..440b39075 100644 Binary files a/easy_chatgpt_access/static/description/assets/screenshots/3.png and b/easy_chatgpt_access/static/description/assets/screenshots/3.png differ diff --git a/easy_chatgpt_access/static/description/assets/screenshots/4.png b/easy_chatgpt_access/static/description/assets/screenshots/4.png index 6f02e4297..ef83d0821 100644 Binary files a/easy_chatgpt_access/static/description/assets/screenshots/4.png and b/easy_chatgpt_access/static/description/assets/screenshots/4.png differ diff --git a/easy_chatgpt_access/static/description/index.html b/easy_chatgpt_access/static/description/index.html index 2498a8012..2caf70fe4 100644 --- a/easy_chatgpt_access/static/description/index.html +++ b/easy_chatgpt_access/static/description/index.html @@ -27,10 +27,6 @@ style="background-color:#017E84 !important;font-size: 0.8rem !important; color:#fff !important; font-weight:500 !important; padding:4px !important; margin:0 3px !important; border-radius:50px !important; min-width: 120px !important;"> Community -
- Enterprise -
diff --git a/easy_chatgpt_access/static/src/js/chatgpt_button.js b/easy_chatgpt_access/static/src/js/chatgpt_button.js index c42959007..4be0cecce 100644 --- a/easy_chatgpt_access/static/src/js/chatgpt_button.js +++ b/easy_chatgpt_access/static/src/js/chatgpt_button.js @@ -124,8 +124,8 @@ export class SystrayIcon extends Component { }; }; session.isEnterprise = function () { - return !!session.server_version_info[5]; - }; + return !!session.server_version_info[5]; +}; SystrayIcon.template = "systray_icon"; export const systrayItem = { Component: SystrayIcon, diff --git a/easy_chatgpt_access/static/src/js/chatgpt_dialog.js b/easy_chatgpt_access/static/src/js/chatgpt_dialog.js index 6ad1ff05a..5999d5c44 100644 --- a/easy_chatgpt_access/static/src/js/chatgpt_dialog.js +++ b/easy_chatgpt_access/static/src/js/chatgpt_dialog.js @@ -11,6 +11,7 @@ patch(ChatGPTDialog.prototype, { setup() { super.setup(...arguments); this.action = useService('action'); + this.notification = useService("notification"); }, // Copy the generated AI text into clipboard when hitting the Copy button copyMessage(ev) { @@ -22,16 +23,16 @@ patch(ChatGPTDialog.prototype, { textArea.select(); var successful = document.execCommand('copy'); document.body.removeChild(textArea) - // Display notification after copying the text - this.action.doAction({ - type: "ir.actions.client", - tag: "display_notification", - params: { - title: "Text copied", - message: "Text copied to Clipboard!", - sticky: false, - }, - }); + this.displayNotification( + ("Text copied to Clipboard") + ); return successful; + }, + displayNotification(text) { + this.notification.add(text, { + type: 'success', + title: 'Text copied', + sticky: false, + }); } })