Skip to content

Commit

Permalink
change: [M3-6838] - Better "Backups Enabled" default when cloning Lin…
Browse files Browse the repository at this point in the history
…ode (#10959)

* Better backups enabled default when cloning linode

* Added changeset: Better 'Backups Enabled' default when cloning Linode

* Refactoring code...

* Cleanup: remove line break
  • Loading branch information
pmakode-akamai authored Sep 23, 2024
1 parent 4a418fa commit 94580bb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/manager/.changeset/pr-10959-changed-1726660002249.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/manager": Changed
---

Better 'Backups Enabled' default when cloning Linode ([#10959](https://github.com/linode/manager/pull/10959))
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ export const LinodeSelectTable = (props: Props) => {
reset((prev) => ({
...prev,
backup_id: null,
backups_enabled: linode.backups.enabled,
linode,
private_ip: hasPrivateIP,
region: linode.region,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@ export const defaultValues = async (

const values: LinodeCreateFormValues = {
backup_id: params.backupID,
backups_enabled: linode?.backups.enabled,
image: getDefaultImageId(params),
interfaces: defaultInterfaces,
linode,
Expand Down

0 comments on commit 94580bb

Please sign in to comment.