Skip to content

Commit

Permalink
Fix regression: Include url in .scl export
Browse files Browse the repository at this point in the history
ref #786
  • Loading branch information
frostburn committed Jul 19, 2024
1 parent 7722620 commit 7b8fb39
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/ExporterButtons.vue
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ const uploadBody = computed(() => {
})
})
const uploadedScaleUrl = computed(() => `${window.location.origin}/scale/${scale.uploadedId}`)
function uploadScale(retries = 1): Promise<string> {
const uploadId = scale.id
if (scale.uploadedId === uploadId) {
Expand Down Expand Up @@ -142,6 +144,7 @@ function doExport(exporter: ExporterKey) {
:show="showScalaExportModal"
@confirm="showScalaExportModal = false"
@cancel="showScalaExportModal = false"
:scaleUrl="uploadedScaleUrl"
:newline="state.newline"
:relativeIntervals="scale.relativeIntervals"
:midiOctaveOffset="-1"
Expand Down
2 changes: 2 additions & 0 deletions src/components/modals/export/ScalaExport.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import type { Interval } from 'sonic-weave'
const props = defineProps<{
show: boolean
scaleUrl: string
newline: string
midiOctaveOffset: number
relativeIntervals: Interval[]
Expand Down Expand Up @@ -44,6 +45,7 @@ const exportLabels = computed(() => {
function doExport() {
const params: ExporterParams = {
scaleUrl: props.scaleUrl,
newline: props.newline,
scale: props.scale,
filename: sanitizeFilename(props.scale.title),
Expand Down

0 comments on commit 7b8fb39

Please sign in to comment.