diff --git a/src/components/ImagesTable.vue b/src/components/ImagesTable.vue index 46e2c6d5..f2b7689d 100644 --- a/src/components/ImagesTable.vue +++ b/src/components/ImagesTable.vue @@ -266,8 +266,8 @@ export default { this.add_download_progress(current_download_id) // this.download_in_progress.push(current_download_id) - let large_fits_reduction_level = this.$store.state.images.large_fits_reduction_level - let object_name = `${image.base_filename}-${image.data_type}${large_fits_reduction_level}.fits.fz` + const large_fits_reduction_level = this.$store.state.images.large_fits_reduction_level + const object_name = `${image.base_filename}-${image.data_type}${large_fits_reduction_level}.fits.fz` const url = `${this.$store.state.api_endpoints.active_api}/download` const body = { @@ -287,8 +287,8 @@ export default { // this.download_in_progress.add(current_download_id) this.add_download_progress(current_download_id) - let large_fits_reduction_level = this.$store.state.images.large_fits_reduction_level - let object_name = `${image.base_filename}-${image.data_type}${large_fits_reduction_level}.fits.fz` + const large_fits_reduction_level = this.$store.state.images.large_fits_reduction_level + const object_name = `${image.base_filename}-${image.data_type}${large_fits_reduction_level}.fits.fz` const url = `${this.$store.state.api_endpoints.active_api}/download` const body = { diff --git a/src/components/NavbarSitePreview.vue b/src/components/NavbarSitePreview.vue index cf89a401..6f8740d4 100644 --- a/src/components/NavbarSitePreview.vue +++ b/src/components/NavbarSitePreview.vue @@ -93,10 +93,10 @@ export default { }, status_color_class (status) { const color_dict = { - operational: 'is-green', - ok: 'is-green', + 'operational': 'is-green', + 'ok': 'is-green', 'technical difficulty': 'is-yellow', - offline: 'is-grey' + 'offline': 'is-grey' } return color_dict?.[status] ?? 'is-grey' } diff --git a/src/components/calendar/TheCalendar.vue b/src/components/calendar/TheCalendar.vue index a4a1338d..630cf939 100644 --- a/src/components/calendar/TheCalendar.vue +++ b/src/components/calendar/TheCalendar.vue @@ -720,7 +720,7 @@ export default { return { headers: { 'Content-Type': 'application/json;charset=UTF-8', - Authorization: `Bearer ${token}` + 'Authorization': `Bearer ${token}` } } }, diff --git a/src/components/projects/CreateProjectForm.vue b/src/components/projects/CreateProjectForm.vue index 721493a4..0d0e6d43 100644 --- a/src/components/projects/CreateProjectForm.vue +++ b/src/components/projects/CreateProjectForm.vue @@ -935,7 +935,7 @@ export default { return { headers: { 'Content-Type': 'application/json;charset=UTF-8', - Authorization: `Bearer ${token}` + 'Authorization': `Bearer ${token}` } } }, diff --git a/src/components/status/SiteOperationalStatus.vue b/src/components/status/SiteOperationalStatus.vue index d7192d4c..23f78c6c 100644 --- a/src/components/status/SiteOperationalStatus.vue +++ b/src/components/status/SiteOperationalStatus.vue @@ -53,9 +53,9 @@ export default { */ operational_status_color_class () { const color_dict = { - operational: 'is-green', + 'operational': 'is-green', 'technical difficulty': 'is-yellow', - offline: 'is-grey' + 'offline': 'is-grey' } return color_dict?.[this.operational_status] ?? 'is-grey' } diff --git a/src/views/Remotehq.vue b/src/views/Remotehq.vue index 577606c6..aefae4ca 100644 --- a/src/views/Remotehq.vue +++ b/src/views/Remotehq.vue @@ -43,7 +43,7 @@ export default { const headers = { headers: { 'Content-Type': 'application/json', - Authorization: `Bearer ${token}` + 'Authorization': `Bearer ${token}` } } const response = await axios.post(url, {}, headers)