-
Notifications
You must be signed in to change notification settings - Fork 5
Fix storage digit #237
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Fix storage digit #237
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -45,7 +45,7 @@ const save = () => { | |
| machineSubscription: formData.value.machineSubscription, | ||
| archive: Number(formData.value.archive), | ||
| work: Number(formData.value.work), | ||
| scratch: Number(formData.value.scratch), | ||
| scratch: formData.value.scratch, | ||
| isDefault: true, | ||
| }) | ||
| emit("close") | ||
|
|
@@ -85,15 +85,15 @@ onMounted(() => { | |
| </v-col> | ||
|
|
||
| <v-col cols="12" sm="6"> | ||
| <v-text-field v-model="formData.archive" label="Archive Storage (TB)" type="number" variant="outlined" min="0" placeholder="0.4"></v-text-field> | ||
| <v-number-input v-model="formData.archive" label="Archive Storage (TB)" type="number" variant="outlined" :min="0" :step="0.1" :precision="1"></v-number-input> | ||
| </v-col> | ||
|
|
||
| <v-col cols="12" sm="6"> | ||
| <v-text-field v-model="formData.work" label="Work Storage (TB)" type="number" variant="outlined" min="0" placeholder="0.3"></v-text-field> | ||
| <v-number-input v-model="formData.work" label="Work Storage (TB)" type="number" variant="outlined" :min="0" :step="0.1" :precision="1"></v-number-input> | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can we set |
||
| </v-col> | ||
|
|
||
| <v-col cols="12" sm="6"> | ||
| <v-text-field v-model="formData.scratch" label="Scratch Storage (TB)" type="number" variant="outlined" min="0" placeholder="0.4"></v-text-field> | ||
| <v-number-input v-model="formData.scratch" label="Scratch Storage (TB)" type="number" variant="outlined" :min="0" :step="0.1" :precision="1"></v-number-input> | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can we set |
||
| </v-col> | ||
| </v-row> | ||
| </v-container> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -80,19 +80,7 @@ onMounted(() => { | |
| <v-select :items="['HDD', 'NVME']" v-model="formData.type" label="Type" required variant="outlined"></v-select> | ||
| </v-col> | ||
| <v-col cols="12"> | ||
| <v-text-field | ||
| v-model="formData.size" | ||
| label="Size (TB)" | ||
| hint="Enter the size of the storage in Terrabytes" | ||
| persistent-hint | ||
| type="number" | ||
| :min="1" | ||
| :max="100" | ||
| :step="1" | ||
| required | ||
| suffix="TB" | ||
| variant="outlined" | ||
| ></v-text-field> | ||
| <v-number-input v-model="formData.size" label="Size (TB)" type="number" variant="outlined" :min="0" :step="0.1" :precision="1"></v-number-input> | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can we set |
||
| </v-col> | ||
| </v-form> | ||
| </v-row> | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we set
min="0.1"?