Don't try to reload record if it's already loading

This commit is contained in:
Piotr Sarnacki 2015-02-06 18:38:28 +01:00
parent 6877c3afc1
commit 485976d003
2 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ Build = Model.extend DurationCalculations,
console.log('config')
if config = @get('_config')
compact(config)
else
else if @get('currentState.stateName') != 'root.loading'
return if @get('isFetchingConfig')
@set 'isFetchingConfig', true

View File

@ -47,7 +47,7 @@ Job = Model.extend DurationCalculations,
config: (->
if config = @get('_config')
compact(config)
else
else if @get('currentState.stateName') != 'root.loading'
return if @get('isFetchingConfig')
@set 'isFetchingConfig', true