clicking on category description pastes in description in timer

practiced-songs
Matthew Huntington 11 months ago
parent 7a07a455d2
commit aa4a52166d

@ -3,6 +3,7 @@
import CategoryChooser from './category_chooser.vue'
import { onMounted, ref, watch, defineProps } from 'vue'
import {
description,
currentWorkingCategory,
currentWorkingInstrument
} from '../libs/state.js'
@ -10,7 +11,7 @@
const categorySessions = ref([])
const copy = (event) => {
navigator.clipboard.writeText(event.target.innerText)
description.value = event.target.innerText
}
const loadCategory = async () => {

@ -23,9 +23,7 @@
import CategoryChooser from './category_chooser.vue'
import { getHours, getMinutes, createTimeObj, getAccumulatedSeconds, formatSeconds } from '../libs/time.js'
import { copiedSongs, currentWorkingCategory, currentWorkingInstrument } from '../libs/state.js'
const description = ref('')
import { copiedSongs, currentWorkingCategory, currentWorkingInstrument, description } from '../libs/state.js'
const removeSong = (song) => {
copiedSongs.value = copiedSongs.value.filter(curr => curr !== song)

@ -4,3 +4,4 @@ export const currentWorkingCategory = ref(null)
export const currentWorkingInstrument = ref(null)
export const instruments = ref([])
export const categories = ref([])
export const description = ref('')

Loading…
Cancel
Save