Skip to content

Commit

Permalink
change the title of exported svg trees
Browse files Browse the repository at this point in the history
  • Loading branch information
khansadaoudi committed Oct 28, 2024
1 parent f609992 commit d0f55e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/sentence/ExportSVG.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ export default defineComponent({
methods: {
getSVG() {
const sentenceSVG = this.sentenceBus.sentenceSVGs[this.userId];
const title = `${this.reactiveSentencesObj[this.userId].getUndescoredText()}.${this.userId}.svg`;
const title = `sentence_${this.reactiveSentencesObj[this.userId].state.metaJson.sent_id}.${this.userId}.svg`;
exportSVG(sentenceSVG, title);
notifyMessage({ message: 'Files downloaded' });
},
getPNG() {
const sentenceSVG = this.sentenceBus.sentenceSVGs[this.userId];
const title = `${this.reactiveSentencesObj[this.userId].getUndescoredText()}.${this.userId}.png`;
const title = `sentence_${this.reactiveSentencesObj[this.userId].state.metaJson.sent_id}.${this.userId}.png`;
exportPNG(sentenceSVG, title);
notifyMessage({ message: 'Files downloaded' });
},
Expand Down

0 comments on commit d0f55e2

Please sign in to comment.