mirror of
https://github.com/hkalexling/Mango.git
synced 2025-08-03 11:25:29 -04:00
Fix broken buttons on download manager page
This commit is contained in:
parent
da0ca665a6
commit
0cc5e1626b
@ -43,12 +43,14 @@ const component = () => {
|
|||||||
this.loading = false;
|
this.loading = false;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
jobAction(action, id) {
|
jobAction(action, event) {
|
||||||
let url = `${base_url}api/admin/mangadex/queue/${action}`;
|
let url = `${base_url}api/admin/mangadex/queue/${action}`;
|
||||||
if (id !== undefined)
|
if (event) {
|
||||||
url += '?' + $.param({
|
const id = event.currentTarget.closest('tr').id.split('-')[1];
|
||||||
|
url = `${url}?${$.param({
|
||||||
id: id
|
id: id
|
||||||
});
|
})}`;
|
||||||
|
}
|
||||||
console.log(url);
|
console.log(url);
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'POST',
|
type: 'POST',
|
||||||
|
@ -51,9 +51,9 @@
|
|||||||
<td x-text="`${job.plugin_id || ''}`"></td>
|
<td x-text="`${job.plugin_id || ''}`"></td>
|
||||||
|
|
||||||
<td>
|
<td>
|
||||||
<a :onclick="`jobAction('delete', '${job.id}')`" uk-icon="trash"></a>
|
<a @click="jobAction('delete', $event)" uk-icon="trash"></a>
|
||||||
<template x-if="job.status_message.length > 0">
|
<template x-if="job.status_message.length > 0">
|
||||||
<a :onclick="`jobAction('retry', '${job.id}')`" uk-icon="refresh"></a>
|
<a @click="jobAction('retry', $event)" uk-icon="refresh"></a>
|
||||||
</template>
|
</template>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user