()
| 36 | }; |
| 37 | |
| 38 | static getMenuItems() { |
| 39 | return [ |
| 40 | { |
| 41 | label: 'Clear Conversation', |
| 42 | accelerator: 'Shift+CmdOrCtrl+C', |
| 43 | validate: (view: ChatView) => view.service?.history.length > 0, |
| 44 | onClick: (view: ChatView) => view.service?.clear(), |
| 45 | }, |
| 46 | ]; |
| 47 | } |
| 48 | |
| 49 | messagesView: MessagesView; |
| 50 |