Skip to content
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

Add Read-Only Project View, Add Username to Projects Table #144

Merged
merged 5 commits into from
Feb 15, 2024
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/components/FormElements/DeclinationInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@
v-model="localDec"
:size="size"
lazy
:disabled="disabled"
/>
<b-select
v-model="units"
:size="size"
:disabled="disabled"
>
<option value="deg">
deg
Expand All @@ -27,10 +29,10 @@

<script>
export default {
props: ['value', 'size'],
props: ['value', 'size', 'disabled'],
data () {
return {
localDec: null,
localDec: this.value,
Copy link
Contributor Author

@mgdaily mgdaily Feb 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here we default the localDec value to the prop that was passed in - I was having an issue when I was re-rendering the component, the dec wasn't displaying even though the value was being passed. So set the default to the value passed in. (I had to do the same with the RightAscensionInput)

units: 'deg',
hasError: false,
errorMessage: ''
Expand Down
6 changes: 4 additions & 2 deletions src/components/FormElements/RightAscensionInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@
v-model="localRa"
:size="size"
lazy
:disabled="disabled"
/>
<b-select
v-model="units"
:size="size"
:disabled="disabled"
>
<option value="deg">
deg
Expand All @@ -30,10 +32,10 @@

<script>
export default {
props: ['value', 'size'],
props: ['value', 'size', 'disabled'],
data () {
return {
localRa: null,
localRa: this.value,
units: 'hours',
hasError: false,
errorMessage: ''
Expand Down
Loading
Loading