Skip to content

Commit 9f17149

Browse files
committed
Expose the Compare Versions button always
We don't need to hide the compare versions button in readOnly as comparing versions isn't a mutation.
1 parent 5f439f3 commit 9f17149

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

frontend/src/components/Schemas/Details/Details.tsx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -76,18 +76,18 @@ const Details: React.FC = () => {
7676
backText="Schema Registry"
7777
backTo={clusterSchemasPath(clusterName)}
7878
>
79+
<Button
80+
buttonSize="M"
81+
buttonType="primary"
82+
to={{
83+
pathname: clusterSchemaSchemaComparePageRelativePath,
84+
search: `leftVersion=${versions[0]?.version}&rightVersion=${versions[0]?.version}`,
85+
}}
86+
>
87+
Compare Versions
88+
</Button>
7989
{!isReadOnly && (
8090
<>
81-
<Button
82-
buttonSize="M"
83-
buttonType="primary"
84-
to={{
85-
pathname: clusterSchemaSchemaComparePageRelativePath,
86-
search: `leftVersion=${versions[0]?.version}&rightVersion=${versions[0]?.version}`,
87-
}}
88-
>
89-
Compare Versions
90-
</Button>
9191
<ActionButton
9292
buttonSize="M"
9393
buttonType="primary"

0 commit comments

Comments
 (0)