mirror of
https://github.com/NovaOSS/nova-betterchat.git
synced 2024-11-25 19:13:59 +01:00
parent
b04dbfa76b
commit
b7848e8b8b
|
@ -157,9 +157,11 @@ const ContentView = React.memo(
|
|||
<div className='flex justify-end gap-2 w-full mt-2'>
|
||||
{isDelete || (
|
||||
<>
|
||||
{role === 'assistant' && messageIndex === lastMessageIndex && (
|
||||
<RefreshButton onClick={handleRefresh} />
|
||||
)}
|
||||
{!useStore.getState().generating &&
|
||||
role === 'assistant' &&
|
||||
messageIndex === lastMessageIndex && (
|
||||
<RefreshButton onClick={handleRefresh} />
|
||||
)}
|
||||
{messageIndex !== 0 && <UpButton onClick={handleMoveUp} />}
|
||||
{messageIndex !== lastMessageIndex && (
|
||||
<DownButton onClick={handleMoveDown} />
|
||||
|
|
Loading…
Reference in a new issue