Skip to content

Commit

Permalink
RavenDB-17593 Clarify text for Reset index
Browse files Browse the repository at this point in the history
  • Loading branch information
Danielle9897 authored and arekpalinski committed Apr 17, 2024
1 parent b5f651f commit 16e6fde
Showing 1 changed file with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,12 @@ export function ConfirmResetIndex(props: ConfirmResetIndexProps) {
</span>
<Alert color="warning">
<small>
Clicking <strong>Reset</strong> will remove all existing indexed data.
<strong>Reset</strong> will remove all existing indexed data
{ActionContextUtils.showContextSelector(allActionContexts) ? (
<span> from the selected context.</span>
) : (
<span> from node {allActionContexts[0].nodeTag}.</span>
)}
</small>
<br />
<small>All items matched by the index definition will be re-indexed.</small>
Expand All @@ -62,7 +67,12 @@ export function ConfirmResetIndex(props: ConfirmResetIndexProps) {
<Button color="link" onClick={toggle} className="link-muted">
Cancel
</Button>
<Button color="warning" onClick={onSubmit} className="rounded-pill">
<Button
color="warning"
onClick={onSubmit}
className="rounded-pill"
disabled={selectedActionContexts.length === 0}
>
<Icon icon="reset-index" />
Reset
</Button>
Expand Down

0 comments on commit 16e6fde

Please sign in to comment.