mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-28 17:43:47 +00:00
fix: move reissue button to standalone block outside device_limit guard
The reissue button was inside the Additional Options card which is gated by device_limit !== 0, so it was hidden when device_limit was 0. Move it to its own card block with independent visibility condition.
This commit is contained in:
@@ -2292,9 +2292,22 @@ export default function Subscription() {
|
|||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
|
||||||
{/* Reissue Subscription */}
|
{/* Reissue Subscription — standalone block, not dependent on device_limit */}
|
||||||
<div className="mt-4">
|
{subscription &&
|
||||||
|
(subscription.is_active || subscription.is_limited) &&
|
||||||
|
!subscription.is_trial && (
|
||||||
|
<div
|
||||||
|
className="relative overflow-hidden rounded-3xl"
|
||||||
|
style={{
|
||||||
|
background: g.cardBg,
|
||||||
|
border: `1px solid ${g.cardBorder}`,
|
||||||
|
boxShadow: g.shadow,
|
||||||
|
padding: '16px 20px',
|
||||||
|
}}
|
||||||
|
>
|
||||||
<button
|
<button
|
||||||
onClick={handleRevoke}
|
onClick={handleRevoke}
|
||||||
disabled={revokeMutation.isPending || revokeCooldown > 0}
|
disabled={revokeMutation.isPending || revokeCooldown > 0}
|
||||||
@@ -2339,7 +2352,6 @@ export default function Subscription() {
|
|||||||
<p className="mt-2 text-sm text-red-400">{getErrorMessage(revokeMutation.error)}</p>
|
<p className="mt-2 text-sm text-red-400">{getErrorMessage(revokeMutation.error)}</p>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{/* My Devices Section */}
|
{/* My Devices Section */}
|
||||||
|
|||||||
Reference in New Issue
Block a user