Skip to content

Commit

Permalink
add 'archive it' link
Browse files Browse the repository at this point in the history
  • Loading branch information
jurajmajerik committed Apr 16, 2024
1 parent 3acb4f4 commit ff249f0
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,8 @@ export function ActionBanner(): JSX.Element {
getHighestProbabilityVariant,
} = useValues(experimentLogic)

const { archiveExperiment } = useActions(experimentLogic)

if (!experiment || experimentLoading || experimentResultsLoading) {
return <></>
}
Expand Down Expand Up @@ -478,7 +480,11 @@ export function ActionBanner(): JSX.Element {
You have stopped this experiment, and it is no longer collecting data. Because your results are not
significant, we don't recommend drawing any conclusions from them. You can reset the experiment
(deleting the data collected so far) and restart the experiment at any point again. If this experiment
is no longer relevant, you can archive it.
is no longer relevant, you can{' '}
<Link className="font-semibold" onClick={() => archiveExperiment()}>
archive it
</Link>
.
</LemonBanner>
)
}
Expand Down

0 comments on commit ff249f0

Please sign in to comment.