mirror of
https://github.com/discourse/discourse.git
synced 2025-02-28 02:56:56 +08:00

Followup to 310cd513d88e3670c7008682ae4b35414084a17d. The `uploadDone` callback returns the whole upload object, so we need to extract the URL from it in these cases.
10 lines
205 B
JavaScript
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);
|
|
}
|
|
}
|