Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/components/ai-clear-history-reminder.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,11 @@ function AIClearHistoryReminder( {
cancelId: CANCEL_BUTTON_INDEX,
} );

if ( checkboxChecked ) {
localStorage.setItem( 'dontShowClearMessagesWarning', 'true' );
}

if ( response === CLEAR_CONVERSATION_BUTTON_INDEX ) {
if ( checkboxChecked ) {
localStorage.setItem( 'dontShowClearMessagesWarning', 'true' );
}

clearInput();
}
}, [ clearInput ] );
Expand Down
8 changes: 4 additions & 4 deletions src/components/ai-input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,11 @@ export const AIInput = ( {
cancelId: CANCEL_BUTTON_INDEX,
} );

if ( checkboxChecked ) {
localStorage.setItem( 'dontShowClearMessagesWarning', 'true' );
}

if ( response === CLEAR_CONVERSATION_BUTTON_INDEX ) {
if ( checkboxChecked ) {
localStorage.setItem( 'dontShowClearMessagesWarning', 'true' );
}

clearInput();
}
};
Expand Down
8 changes: 4 additions & 4 deletions src/components/content-tab-snapshots.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,11 @@ function SnapshotRow( {
checkboxChecked: false,
} );

if ( checkboxChecked ) {
localStorage.setItem( 'dontShowUpdateWarning', 'true' );
}

if ( response === UPDATE_BUTTON_INDEX ) {
if ( checkboxChecked ) {
localStorage.setItem( 'dontShowUpdateWarning', 'true' );
}

updateDemoSite( snapshot, selectedSite );
}
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ getIpcApi()
'Downloading the optimized version of Studio will provide better performance.'
),
checkboxLabel: __( "Don't show this warning again" ),
buttons: [ __( 'Download' ), __( 'Cancel' ) ],
buttons: [ __( 'Download' ), __( 'Not now' ) ],
cancelId: 1,
} );

Expand Down