Skip to content

Commit

Permalink
added note when freeze/unfreeze is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
nischal-shetty2 committed Nov 6, 2024
1 parent 68b7d3f commit bc9e416
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 5 deletions.
6 changes: 6 additions & 0 deletions src/components/jar_details/JarDetailsOverlay.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,19 @@
border-radius: 0.35rem;
}

.freezeUnfreezeButtonsContainer button:disabled {
color: var(--bs-gray-800) !important;
border-color: var(--bs-gray-900) !important;
}

.freezeBtn {
color: var(--bs-blue) !important;
border-color: var(--bs-blue) !important;
}
.freezeBtn:hover {
background-color: rgba(13, 110, 253, 0.07) !important;
}

.unfreezeBtn {
color: var(--bs-red) !important;
border-color: var(--bs-red) !important;
Expand Down
17 changes: 13 additions & 4 deletions src/components/jar_details/JarDetailsOverlay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -373,12 +373,21 @@ const JarDetailsOverlay = (props: JarDetailsOverlayProps) => {
{selectedUtxos.length > 0 && (
<div className="d-flex justify-content-between align-items-center w-100 flex-sm-row flex-column gap-2">
<div className="order-1 order-sm-0">
{isActionsEnabled && (
<div className={styles.freezeUnfreezeButtonsContainer}>
{freezeButton}
{unfreezeButton}
{!isActionsEnabled && (
<div className="d-flex align-items-center mb-2 fw-bold text-secondary">
<Sprite
className="rounded-circle border border-1 me-2"
symbol="info"
width="20"
height="20"
/>
<Trans i18nKey="jar_details.utxo_list.subtitle_options_disabled" />
</div>
)}
<div className={styles.freezeUnfreezeButtonsContainer}>
{freezeButton}
{unfreezeButton}
</div>
</div>
{selectedUtxosBalance > 0 && (
<div className="order-0 order-sm-1">
Expand Down
3 changes: 2 additions & 1 deletion src/i18n/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -719,7 +719,8 @@
"utxo_detail_label_confirmations": "Confirmations",
"utxo_detail_label_is_frozen": "Is frozen",
"utxo_detail_label_locktime": "Locktime",
"utxo_detail_label_status": "Address status"
"utxo_detail_label_status": "Address status",
"subtitle_options_disabled": "A Maker/Taker operation is in progress. Some operations are disabled"
}
},
"show_utxos": {
Expand Down

0 comments on commit bc9e416

Please sign in to comment.