mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 10:34:17 +00:00
close creator when submitted finished
This commit is contained in:
parent
c5d7db1720
commit
cd5d3aa9c6
@ -18,6 +18,8 @@ const DEFAULT_POST_POLICY = {
|
||||
maximunFilesPerRequest: 10
|
||||
}
|
||||
|
||||
// TODO: Fix close window when post created
|
||||
|
||||
export default class PostCreator extends React.Component {
|
||||
state = {
|
||||
pending: [],
|
||||
@ -110,6 +112,10 @@ export default class PostCreator extends React.Component {
|
||||
if (typeof this.props.onPost === "function") {
|
||||
this.props.onPost()
|
||||
}
|
||||
|
||||
if (typeof this.props.close === "function") {
|
||||
this.props.close()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user