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