remove debug statements.
This commit is contained in:
parent
b08be6f8f0
commit
44b145270f
3 changed files with 8 additions and 5 deletions
|
|
@ -463,7 +463,6 @@ const hasDownloaded = computed(() => {
|
||||||
for (const key in stateStore.history) {
|
for (const key in stateStore.history) {
|
||||||
const element = stateStore.history[key]
|
const element = stateStore.history[key]
|
||||||
if (element.status === 'finished' && element.filename) {
|
if (element.status === 'finished' && element.filename) {
|
||||||
console.log(element);
|
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -187,7 +187,7 @@ const toast = useToast()
|
||||||
const showAdvanced = useStorage('show_advanced', false)
|
const showAdvanced = useStorage('show_advanced', false)
|
||||||
const addInProgress = ref(false)
|
const addInProgress = ref(false)
|
||||||
|
|
||||||
const form = useStorage('local_config', {
|
const form = useStorage('local_config_v1', {
|
||||||
id: null,
|
id: null,
|
||||||
url: '',
|
url: '',
|
||||||
preset: config.app.default_preset,
|
preset: config.app.default_preset,
|
||||||
|
|
@ -242,6 +242,7 @@ const resetConfig = () => {
|
||||||
cli: '',
|
cli: '',
|
||||||
template: '',
|
template: '',
|
||||||
folder: '',
|
folder: '',
|
||||||
|
extras: {},
|
||||||
}
|
}
|
||||||
|
|
||||||
showAdvanced.value = false
|
showAdvanced.value = false
|
||||||
|
|
@ -304,9 +305,12 @@ onMounted(async () => {
|
||||||
|
|
||||||
if (props?.item) {
|
if (props?.item) {
|
||||||
Object.keys(props.item).forEach(key => {
|
Object.keys(props.item).forEach(key => {
|
||||||
console.log(key, form.value[key], props.item[key])
|
|
||||||
if (key in form.value) {
|
if (key in form.value) {
|
||||||
form.value[key] = props.item[key]
|
let value = props.item[key]
|
||||||
|
if ('extras' === key) {
|
||||||
|
value = JSON.parse(JSON.stringify(props.item[key]))
|
||||||
|
}
|
||||||
|
form.value[key] = value
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
emitter('clear_form');
|
emitter('clear_form');
|
||||||
|
|
|
||||||
|
|
@ -276,7 +276,7 @@ const checkInfo = async () => {
|
||||||
try {
|
try {
|
||||||
CronExpressionParser.parse(form.timer);
|
CronExpressionParser.parse(form.timer);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log(e)
|
console.error(e)
|
||||||
toast.error(`Invalid CRON expression. ${e.message}`);
|
toast.error(`Invalid CRON expression. ${e.message}`);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue