mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-23 07:38:07 -05:00
Add empty host for clear-cache
proxy request
So that it actually goes to scratchr2, not scratch-api
This commit is contained in:
parent
b466e53a8a
commit
46742459bf
1 changed files with 2 additions and 1 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue