|
|
@ -234,7 +234,7 @@ export const TabsUI = (props: TabsUIProps) => { |
|
|
|
<button |
|
|
|
<button |
|
|
|
data-id="explain-editor" |
|
|
|
data-id="explain-editor" |
|
|
|
id='explain_btn' |
|
|
|
id='explain_btn' |
|
|
|
className='btn text-ai pl-2 pr-0 py-0 d-flex' |
|
|
|
className='btn text-ai pl-2 pr-0 py-0' |
|
|
|
disabled={!(tabsState.currentExt === 'sol') || explaining} |
|
|
|
disabled={!(tabsState.currentExt === 'sol') || explaining} |
|
|
|
onClick={async () => { |
|
|
|
onClick={async () => { |
|
|
|
const path = active().substr(active().indexOf('/') + 1, active().length) |
|
|
|
const path = active().substr(active().indexOf('/') + 1, active().length) |
|
|
@ -268,7 +268,7 @@ export const TabsUI = (props: TabsUIProps) => { |
|
|
|
<button |
|
|
|
<button |
|
|
|
data-id="remix_ai_switch" |
|
|
|
data-id="remix_ai_switch" |
|
|
|
id='remix_ai_switch' |
|
|
|
id='remix_ai_switch' |
|
|
|
className="btn ai-switch text-ai pl-2 pr-0 py-0 d-flex" |
|
|
|
className="btn ai-switch text-ai pl-2 pr-0 py-0" |
|
|
|
disabled={!(tabsState.currentExt === 'sol' )} |
|
|
|
disabled={!(tabsState.currentExt === 'sol' )} |
|
|
|
onClick={async () => { |
|
|
|
onClick={async () => { |
|
|
|
await props.plugin.call('settings', 'updateCopilotChoice', !ai_switch) |
|
|
|
await props.plugin.call('settings', 'updateCopilotChoice', !ai_switch) |
|
|
|