Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-26 11:00:28 +01:00
FIX: logs weren't deleting when trash can was pressed
Dieser Commit ist enthalten in:
Ursprung
7efaf25572
Commit
fa39bbff29
1 geänderte Dateien mit 3 neuen und 0 gelöschten Zeilen
|
@ -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)
|
||||||
|
|
Laden …
In neuem Issue referenzieren