mirror of
https://github.com/supabase/supabase.git
synced 2026-05-31 18:03:33 +08:00
Chore/misc fixes 200625 (#36545)
* Fix database functions editor not resetting maximized state when panel is closed * Small update to copy in compute costs confirmation modal
This commit is contained in:
@@ -134,6 +134,7 @@ const CreateFunction = ({ func, visible, setVisible }: CreateFunctionProps) => {
|
||||
|
||||
useEffect(() => {
|
||||
if (visible) {
|
||||
setFocusedEditor(false)
|
||||
form.reset({
|
||||
name: func?.name ?? '',
|
||||
schema: func?.schema ?? 'public',
|
||||
|
||||
@@ -951,8 +951,8 @@ const Wizard: NextPageWithLayout = () => {
|
||||
size="large"
|
||||
loading={false}
|
||||
visible={isComputeCostsConfirmationModalVisible}
|
||||
title={<>Confirm compute costs</>}
|
||||
confirmLabel="Confirm"
|
||||
title="Confirm compute costs"
|
||||
confirmLabel="I understand"
|
||||
onCancel={() => setIsComputeCostsConfirmationModalVisible(false)}
|
||||
onConfirm={async () => {
|
||||
const values = form.getValues()
|
||||
@@ -965,7 +965,7 @@ const Wizard: NextPageWithLayout = () => {
|
||||
<p>
|
||||
Launching a project on compute size "{instanceLabel(instanceSize)}" increases your
|
||||
monthly costs by ${additionalMonthlySpend}, independent of how actively you use it. By
|
||||
clicking "Confirm", you agree to the additional costs.{' '}
|
||||
clicking "I understand", you agree to the additional costs.{' '}
|
||||
<Link
|
||||
href="https://supabase.com/docs/guides/platform/manage-your-usage/compute"
|
||||
target="_blank"
|
||||
|
||||
Reference in New Issue
Block a user