Files
frontend/marko/page/data/components/link-file-modal/component.js
T
gisle 5fe56eaae8
the build was successful
UI for file stuff.
2019-09-15 16:34:40 +02:00

19 lines
310 B
JavaScript

module.exports = class {
onCreate(input) {
this.state = {
isImage: (input.file && input.file.mimeType.startsWith("image/"))
}
}
onInput(input) {
this.state.isImage = (input.file && input.file.mimeType.startsWith("image/"))
}
open() {
}
close() {
this.emit("close")
}
}