David Taylor b2b9657a0b
FIX: Image uploads in site-settings and profile (#31350)
Followup to 310cd513d88e3670c7008682ae4b35414084a17d. The `uploadDone`
callback returns the whole upload object, so we need to extract the URL
from it in these cases.
2025-02-14 11:02:10 +00:00

10 lines
205 B
JavaScript

import Component from "@ember/component";
import { action } from "@ember/object";
export default class Upload extends Component {
@action
uploadDone(upload) {
this.set("value", upload.url);
}
}