Don't allow to change hook's state while it's saving
This commit is contained in:
parent
9cb451d68b
commit
875295c1a1
|
@ -23,6 +23,7 @@ require 'travis/model'
|
||||||
).property()
|
).property()
|
||||||
|
|
||||||
toggle: ->
|
toggle: ->
|
||||||
|
return if @get('isSaving')
|
||||||
transaction = @get('store').transaction()
|
transaction = @get('store').transaction()
|
||||||
transaction.add this
|
transaction.add this
|
||||||
|
|
||||||
|
|
|
@ -19,6 +19,7 @@
|
||||||
{{#each hook in hooks}}
|
{{#each hook in hooks}}
|
||||||
<li {{bindAttr class="hook.active:active"}}>
|
<li {{bindAttr class="hook.active:active"}}>
|
||||||
<a {{bindAttr href="hook.urlGithub"}} rel="nofollow">{{hook.slug}}</a>
|
<a {{bindAttr href="hook.urlGithub"}} rel="nofollow">{{hook.slug}}</a>
|
||||||
|
{{#if hook.isSaving}}<span class="loading"></span>{{/if}}
|
||||||
<p class="description">{{hook.description}}</p>
|
<p class="description">{{hook.description}}</p>
|
||||||
|
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
|
|
Loading…
Reference in New Issue
Block a user