Add empty host for clear-cache proxy request

So that it actually goes to scratchr2, not scratch-api
This commit is contained in:
Matthew Taylor 2015-10-30 09:14:49 -04:00
parent b466e53a8a
commit 46742459bf

View file

@ -118,6 +118,7 @@ var Splash = injectIntl(React.createClass({
},
refreshHomepageCache: function () {
this.api({
host: '',
uri: '/scratch_admin/homepage/clear-cache/',
method: 'post',
useCsrf: true
@ -375,7 +376,7 @@ var Splash = injectIntl(React.createClass({
<span>Refresh row data:</span>
<Button onClick={this.refreshHomepageCache}
className={homepageCacheState.status}
diabled={homepageCacheState.disabled}>
disabled={homepageCacheState.disabled}>
<span>{homepageCacheState.content}</span>
</Button>
</div>