Skip to content

Commit

Permalink
refactor: set v1 as default
Browse files Browse the repository at this point in the history
Signed-off-by: Yi-Ya Chen <yiya.chen@suse.com>
  • Loading branch information
houhoucoop authored and derekbit committed Dec 25, 2024
1 parent e049187 commit f903b6a
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/routes/backingImage/CreateBackingImage.js
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ const modal = ({
</FormItem>
<FormItem label="Data Engine" hasFeedback {...formItemLayout}>
{getFieldDecorator('dataEngine', {
initialValue: v2DataEngineEnabled ? 'v2' : 'v1',
initialValue: v1DataEngineEnabled ? 'v1' : 'v2',
rules: [
{
validator: (_rule, value, callback) => {
Expand Down
2 changes: 1 addition & 1 deletion src/routes/backingImage/RestoreBackupBackingImageModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const modal = ({
)}
<FormItem label="Data Engine" hasFeedback {...formItemLayout}>
{getFieldDecorator('dataEngine', {
initialValue: item.dataEngine || 'v1',
initialValue: v1DataEngineEnabled ? 'v1' : 'v2',
rules: [
{
validator: (_rule, value, callback) => {
Expand Down
2 changes: 1 addition & 1 deletion src/routes/backup/BulkCreateStandbyVolumeModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ const modal = ({
</FormItem>
<FormItem label="Data Engine" hasFeedback {...formItemLayout}>
{getFieldDecorator('dataEngine', {
initialValue: 'v1',
initialValue: v1DataEngineEnabled ? 'v1' : 'v2',
rules: [
{
required: true,
Expand Down
2 changes: 1 addition & 1 deletion src/routes/backup/BulkRestoreBackupModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ const modal = ({
</FormItem>
<FormItem label="Data Engine" hasFeedback {...formItemLayout}>
{getFieldDecorator('dataEngine', {
initialValue: item.dataEngine || 'v1',
initialValue: v1DataEngineEnabled ? 'v1' : 'v2',
rules: [
{
required: true,
Expand Down
2 changes: 1 addition & 1 deletion src/routes/backup/CreateStandbyVolumeModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ const modal = ({
</FormItem>
<FormItem label="Data Engine" hasFeedback {...formItemLayout}>
{getFieldDecorator('dataEngine', {
initialValue: 'v1',
initialValue: v1DataEngineEnabled ? 'v1' : 'v2',
rules: [
{
required: true,
Expand Down
2 changes: 1 addition & 1 deletion src/routes/backup/RestoreBackupModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ const modal = ({
</FormItem>
<FormItem label="Data Engine" hasFeedback {...formItemLayout}>
{getFieldDecorator('dataEngine', {
initialValue: 'v1',
initialValue: v1DataEngineEnabled ? 'v1' : 'v2',
rules: [
{
required: true,
Expand Down
2 changes: 1 addition & 1 deletion src/routes/volume/BulkCloneVolumeModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ const modal = ({
</FormItem>
<FormItem label="Data Engine" hasFeedback {...formItemLayout}>
{getFieldDecorator('dataEngine', {
initialValue: item.dataEngine || 'v1',
initialValue: v1DataEngineEnabled ? 'v1' : 'v2',
rules: [
{
validator: (_rule, value, callback) => {
Expand Down
2 changes: 1 addition & 1 deletion src/routes/volume/CreateVolume.js
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ const modal = ({
}
<FormItem label="Data Engine" hasFeedback {...formItemLayout}>
{getFieldDecorator('dataEngine', {
initialValue: item.dataEngine || 'v1',
initialValue: v1DataEngineEnabled ? 'v1' : 'v2',
rules: [
{
validator: (_rule, value, callback) => {
Expand Down

0 comments on commit f903b6a

Please sign in to comment.