Skip to content

Commit

Permalink
Merge pull request #407 from HarperDB/stage
Browse files Browse the repository at this point in the history
Merge stage into main - unpaid ram update
  • Loading branch information
Devin-Holland authored Nov 4, 2024
2 parents 2c20b30 + 4edca4b commit 5f7b822
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "harperdb-studio",
"version": "4.6.2",
"version": "4.6.3",
"description": "A UI for HarperDB",
"deploymentUrl": "studio.harperdb.io",
"private": true,
Expand Down Expand Up @@ -86,4 +86,4 @@
"typescript": "^5.6.2"
},
"packageManager": "[email protected]+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
}
}
3 changes: 2 additions & 1 deletion src/components/instance/config/UpdateRAM.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ function UpdateRAM({ setInstanceAction, showPrepaidCompute }) {
const is_wavelength = useStoreState(instanceState, (s) => s.wavelength_zone_id);
const compute_subscription_id = useStoreState(instanceState, (s) => s.compute_subscription_id);
const is_being_modified = useStoreState(instanceState, (s) => !['CREATE_COMPLETE', 'UPDATE_COMPLETE'].includes(s.status));
const is_unpaid = useStoreState(appState, (s) => s.customer?.is_unpaid)

const filteredProducts = useStoreState(appState, (s) => s.products[is_local ? 'local_compute' : is_wavelength ? 'wavelength_compute' : 'cloud_compute']);
const filteredSubscriptions = useStoreState(appState, (s) =>
Expand Down Expand Up @@ -128,7 +129,7 @@ function UpdateRAM({ setInstanceAction, showPrepaidCompute }) {
onClick={() => navigate(`/o/${customer_id}/billing?returnURL=/${customer_id}/i/${compute_stack_id}/config`)}
/>
</div>
) : hasChanged && (storage?.storage_price || formData?.compute_price) && !hasCard ? (
) : hasChanged && (storage?.storage_price || formData?.compute_price) && !hasCard && !is_unpaid ? (
<VisitCard
disabled={!hasChanged || formState.submitted}
label="Add Credit Card To Account"
Expand Down

0 comments on commit 5f7b822

Please sign in to comment.