Commit af415e1b authored by Ray Schamp's avatar Ray Schamp

Set template cue to dismiss welcome panel

parent 58d3ed4e
......@@ -7,5 +7,6 @@
"/login_retry/",
"/media/",
"/session/",
"/site-api",
"/static/"
]
......@@ -88,8 +88,16 @@ var Splash = injectIntl(React.createClass({
if (!err) this.setState({projectCount: body.count});
}.bind(this));
},
handleDismiss: function (flag) {
// TODO: Call flag setting xhr
handleDismiss: function (cue) {
this.api({
host: '',
uri: '/site-api/users/set-template-cue/',
method: 'post',
useCsrf: true,
json: {cue: cue, value: false}
}, function (err) {
if (!err) window.refreshSession();
});
},
renderHomepageRows: function () {
var formatMessage = this.props.intl.formatMessage;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment