Skip to content

Commit

Permalink
Merge pull request #96 from LCOGT/fix/minor-code-cleanup
Browse files Browse the repository at this point in the history
DataSession code is incorrect as it overides backend, operations wizard has nonused var
  • Loading branch information
LTDakin authored Jul 15, 2024
2 parents 3546cbd + 141a4ce commit f48e930
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
5 changes: 0 additions & 5 deletions src/components/DataSession/DataSession.vue
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,6 @@ function deleteOperation(operationID) {
async function addOperation(operationDefinition) {
const url = dataSessionsUrl + props.data.id + '/operations/'
if ('input_files' in operationDefinition.input_data) {
for (const image of operationDefinition.input_data.input_files) {
image.source = 'archive'
}
}
// first operation doesn't load unless this is here
function postOperationSuccess() {
Expand Down
8 changes: 1 addition & 7 deletions src/components/DataSession/OperationWizard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ const selectedOperation = ref('')
const selectedOperationInput = ref({})
const selectedImages = ref({})
const imagesPerRow = ref(3)
let displayImages = ref(false)
const page = ref('select')
onMounted(async () => {
const url = dataSessionsUrl + 'available_operations/'
Expand All @@ -32,8 +31,6 @@ onMounted(async () => {
}
})
const page = ref('select')
function selectOperation(name) {
selectedOperation.value = name
selectedOperationInput.value = {}
Expand All @@ -52,7 +49,6 @@ function selectOperation(name) {
}
function goBack() {
displayImages.value = false
if (page.value == 'select') {
emit('closeWizard')
}
Expand Down Expand Up @@ -96,10 +92,8 @@ const wizardTitle = computed(() => {
function goForward() {
if (page.value == 'select') {
page.value = 'configure'
displayImages.value = true
}
else {
displayImages.value = false
let operationDefinition = {
'name': selectedOperation.value,
'input_data': {
Expand Down

0 comments on commit f48e930

Please sign in to comment.