Skip to content

Commit

Permalink
download alert
Browse files Browse the repository at this point in the history
  • Loading branch information
devincowan committed Feb 27, 2024
1 parent da3d548 commit a80df58
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 12 deletions.
24 changes: 12 additions & 12 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,18 @@ services:
depends_on:
- api

frontend:
image: frontend
env_file:
- .env
build:
dockerfile: Dockerfile
context: ./frontend/
ports:
- 8080:8080
restart: unless-stopped
# depends_on:
# - api
# frontend:
# image: frontend
# env_file:
# - .env
# build:
# dockerfile: Dockerfile
# context: ./frontend/
# ports:
# - 8080:8080
# restart: unless-stopped
# # depends_on:
# # - api

api:
image: api
Expand Down
9 changes: 9 additions & 0 deletions frontend/src/views/SelectionsView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,10 @@ import { useFeaturesStore } from '../stores/features';
import { RouterLink } from 'vue-router';
import { ref } from 'vue'
import { mdiDownload, mdiSatelliteVariant, mdiSword } from '@mdi/js'
import { useAlertStore } from '@/stores/alerts'
const featureStore = useFeaturesStore();
const alertStore = useAlertStore();
let sheetText = ref(null)
Expand Down Expand Up @@ -183,6 +185,13 @@ async function downloadArtifact(feature) {
// document.body.removeChild(link);
// TODO: implement download
console.warn('Download not implemented')
alertStore.displayAlert({
title: 'Download',
text: 'Download not implemented yet.',
type: 'error',
closable: true,
duration: 3
})
}
async function viewHydroCronResult(feature) {
Expand Down

0 comments on commit a80df58

Please sign in to comment.