Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Commit

Permalink
Display created time and title after expire save. (#3255) (#4285)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenba authored and jaredhirsch committed Mar 28, 2018
1 parent 5f19a14 commit cf11f34
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/pages/shot/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ exports.changeShotExpiration = function(shot, expiration) {
if (expiration === 0) {
model.shot.expireTime = model.expireTime = null;
} else {
model.shot.expireTime = model.expireTime = new Date(Date.now() + expiration);
model.shot.expireTime = model.expireTime = Date.now() + expiration;
}
render();
}
Expand Down
1 change: 1 addition & 0 deletions server/src/pages/shot/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -652,6 +652,7 @@ class ExpireWidget extends React.Component {
value = parseInt(value, 10);
// Note: sendEvent done in onSaveExpire
this.props.onSaveExpire(value);
this.props.onChanging(false);
this.setState({isChangingExpire: false});
}
}
Expand Down

0 comments on commit cf11f34

Please sign in to comment.