mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-23 06:30:50 +08:00
Followup to 310cd513d8. The `uploadDone`
callback returns the whole upload object, so we need to extract the URL
from it in these cases.
9 lines
205 B
JavaScript
Vendored
9 lines
205 B
JavaScript
Vendored
import Component from "@ember/component";
|
|
import { action } from "@ember/object";
|
|
|
|
export default class Upload extends Component {
|
|
@action
|
|
uploadDone(upload) {
|
|
this.set("value", upload.url);
|
|
}
|
|
}
|