Skip to content

Commit

Permalink
hide modelselect drawer after selection
Browse files Browse the repository at this point in the history
  • Loading branch information
devincowan committed Jan 14, 2024
1 parent 471f50a commit 6e7ac3d
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 deletions.
12 changes: 9 additions & 3 deletions app/frontend/src/components/TheLeafletMap.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ const modelAction = modelsStore.$onAction(
// this will trigger if the action succeeds and after it has fully run.
// it waits for any returned promised
after((result) => {
console.log(store.selectedModel.input)
if (store.selectedModel.input != "bbox") {
removeBbox()
} else {
Expand All @@ -49,7 +48,7 @@ const modelAction = modelsStore.$onAction(
const Map = mapStore.mapObject
onUpdated(() =>{
onUpdated(() => {
Map.map.invalidateSize()
})
onMounted(() => {
Expand Down Expand Up @@ -873,7 +872,14 @@ async function toggleHucsAsync(url, remove_if_selected, remove) {
// let elem = row.getElementsByTagName('td')[2]
// elem.innerText = 'Error';
// elem.style.color = 'red';
console.log("Error during toggle huc", err)
console.error("Error during toggle huc", err)
alertStore.displayAlert({
title: 'Error',
text: `Error selecting huc: ${err}`,
type: 'error',
closable: true,
duration: 1
})
}
// refresh page
// document.getElementById('huc-table-div').hide().show(0);
Expand Down
1 change: 0 additions & 1 deletion app/frontend/src/components/ThemeButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { useTheme } from 'vuetify'
const theme = useTheme()
function toggleTheme () {
console.log(theme.global.current.value)
theme.global.name.value = theme.global.current.value.dark ? 'light' : 'dark'
}
</script>
1 change: 0 additions & 1 deletion app/frontend/src/stores/submissions.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ export const useSubmissionsStore = defineStore('submissions', () => {
if (objIndex > -1) {
this.submissions[objIndex]=response;
}
console.log(response)
}

return { submissions, getSubmissions, refreshWorkflows, refreshSubmission}
Expand Down
6 changes: 4 additions & 2 deletions app/frontend/src/views/MapView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@
</template>

<script setup>
import { ref } from 'vue'
import { ref } from 'vue';
import ModelSelectDrawer from '../components/ModelSelectDrawer.vue';
import SubmitButton from '../components/SubmitButton.vue';
const showModelSelect = ref(true)
import { useModelsStore } from '@/stores/models'
const modelsStore = useModelsStore();
const showModelSelect = ref(modelsStore.selectedModel.value == null)
</script>

0 comments on commit 6e7ac3d

Please sign in to comment.