0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-22 17:30:29 +01:00

FIX: logs weren't deleting when trash can was pressed

Dieser Commit ist enthalten in:
Robert Barrow 2019-06-16 14:33:30 +01:00
Ursprung 7efaf25572
Commit fa39bbff29

Datei anzeigen

@ -198,6 +198,9 @@ export default Ember.Controller.extend({
}, },
clearLogs() { clearLogs() {
const name = this.get('api.name');
if (!name) return;
ajax(`/admin/wizards/apis/logs/${name.underscore()}`, { ajax(`/admin/wizards/apis/logs/${name.underscore()}`, {
type: 'DELETE' type: 'DELETE'
}).catch(popupAjaxError) }).catch(popupAjaxError)