fix(fe playlist): fixed time formatting in playlists
This commit is contained in:
parent
1c3ed7f590
commit
892093744b
3 changed files with 12 additions and 9 deletions
|
@ -10,6 +10,7 @@ const { items, listData, headers, selected, loading, search, getItems, editItem,
|
|||
const itemEdited = ref({
|
||||
id: null
|
||||
})
|
||||
|
||||
const bulk = ref(false)
|
||||
const dialog = reactive({
|
||||
open: false,
|
||||
|
@ -38,14 +39,16 @@ const edit = (item) => {
|
|||
const save = (item) => {
|
||||
if (item.name === '') {
|
||||
//Check required fields
|
||||
console.log('error')
|
||||
console.log('error!')
|
||||
}
|
||||
console.log(item)
|
||||
|
||||
if (item.id > 0) {
|
||||
const saved = editItem(item)
|
||||
console.log(saved)
|
||||
} else {
|
||||
delete item.id
|
||||
createItem(item)
|
||||
const saved = createItem(item)
|
||||
console.log(saved)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue