This doesn't work when "OK" gets translated, as it's done in the response and so it always shows the badge-important.  I'd suggest either adding another element to the return response that isn't translated, or change it to this in the model: `N_("OK")` and then use `item.text(_(response.status))` in the JavaScript.

The N_() causes the string to get extracted into the locale files but not translated, so it goes over the wire as "OK", then the JavaScript i18n tool translates it.