diff --git a/img/ascribe_animated_large.gif b/img/ascribe_animated_large.gif new file mode 100644 index 00000000..bb3c620d Binary files /dev/null and b/img/ascribe_animated_large.gif differ diff --git a/img/ascribe_animated_small.gif b/img/ascribe_animated_small.gif new file mode 100644 index 00000000..7d249c1e Binary files /dev/null and b/img/ascribe_animated_small.gif differ diff --git a/js/app.js b/js/app.js index 447ecc96..c50dd902 100644 --- a/js/app.js +++ b/js/app.js @@ -15,15 +15,11 @@ let headers = { 'Content-Type': 'application/json' }; -if (window.DEBUG) { - headers.Authorization = 'Basic ' + window.CREDENTIALS; -} - fetch.defaults({ urlMap: ApiUrls, http: { headers: headers, - credentials: 'same-origin' + credentials: 'include' }, fatalErrorHandler: (err) => { console.log(err); diff --git a/js/components/ascribe_buttons/button_submit.js b/js/components/ascribe_buttons/button_submit.js new file mode 100644 index 00000000..ef5999cd --- /dev/null +++ b/js/components/ascribe_buttons/button_submit.js @@ -0,0 +1,27 @@ +'use strict'; + +import React from 'react'; + +let ButtonSubmitOrClose = React.createClass({ + propTypes: { + submitted: React.PropTypes.bool.isRequired, + text: React.PropTypes.string.isRequired + }, + + render() { + if (this.props.submitted){ + return ( +