Skip to content

Commit

Permalink
NCL-8947 Change disable reason for restore revision button
Browse files Browse the repository at this point in the history
  • Loading branch information
DnsZhou committed Jan 10, 2025
1 parent d95c4e3 commit 38a30dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/BuildConfigDetailPage/BuildConfigDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const BuildConfigDetail = ({

const [isUpgradeEnvironmentModalOpen, setIsUpgradeEnvironmentModalOpen] = useState<boolean>(false);

const disabledButtonReason = isCurrentRevision ? 'Restore button is disabled for the current revision' : undefined;
const disabledButtonReason = isCurrentRevision ? 'The last Build Config revision cannot be restored' : undefined;

const toggleUpgradeEnvironmentModal = () =>
setIsUpgradeEnvironmentModalOpen((isUpgradeEnvironmentModalOpen) => !isUpgradeEnvironmentModalOpen);
Expand Down

0 comments on commit 38a30dd

Please sign in to comment.