Skip to content

Commit

Permalink
renamed minWidth, minHeight, maxWidth, and maxHeight to minWidthDegre…
Browse files Browse the repository at this point in the history
…es etc (appended the word Degrees so it makes more sense). Also changed * 60 in these mins and maxs to * degreesToArcMinutes and this is declared in the data to declare and assigned the value of 60
  • Loading branch information
Carolina Capetillo committed Sep 21, 2023
1 parent fc694d1 commit 7ceabb3
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions src/components/projects/CreateProjectForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -372,8 +372,8 @@
size="is-small"
:disabled="!exposures[n-1].active"
type="number"
:min="exposures[n-1].zoom === 'Mosaic arcmin.' ? minWidth * 60 : minWidth"
:max="exposures[n-1].zoom === 'Mosaic arcmin.' ? maxWidth * 60 : maxWidth"
:min="exposures[n-1].zoom === 'Mosaic arcmin.' ? minWidthDegrees * degreesToArcminutes : minWidthDegrees"
:max="exposures[n-1].zoom === 'Mosaic arcmin.' ? maxWidthDegrees * degreesToArcminutes : maxWidthDegrees"
:step="exposures[n-1].zoom === 'Mosaic arcmin.' ? conditionalStep * 10 : conditionalStep"
/>
</b-field>
Expand All @@ -386,8 +386,8 @@
size="is-small"
:disabled="!exposures[n-1].active"
type="number"
:min="exposures[n-1].zoom === 'Mosaic arcmin.' ? minHeight * 60 : minHeight"
:max="exposures[n-1].zoom === 'Mosaic arcmin.' ? maxHeight * 60 : maxHeight"
:min="exposures[n-1].zoom === 'Mosaic arcmin.' ? minHeightDegrees * degreesToArcminutes : minHeightDegrees"
:max="exposures[n-1].zoom === 'Mosaic arcmin.' ? maxHeightDegrees * degreesToArcminutes : maxHeightDegrees"
:step="exposures[n-1].zoom === 'Mosaic arcmin.' ? conditionalStep * 10 : conditionalStep"
/>
</b-field>
Expand Down Expand Up @@ -865,10 +865,11 @@ export default {
'Mosaic deg.', 'Mosaic arcmin.', 'Full', 'Big sq.',
'Small sq.', '71%', '50%', '35%', '25%', '18%', '12.5%', '9%', '6%'
],
minWidth: -4.5,
maxWidth: 4.5,
minHeight: -4.5,
maxHeight: 4.5,
minWidthDegrees: -4.5,
maxWidthDegrees: 4.5,
minHeightDegrees: -4.5,
maxHeightDegrees: 4.5,
degreesToArcminutes: 60,
conditionalStep: 0.1,
site: this.sitecode,
warn: {
Expand Down

0 comments on commit 7ceabb3

Please sign in to comment.