get dashboard sync button to work properly
This commit is contained in:
parent
48551e291c
commit
074cf2d427
|
@ -3,8 +3,7 @@
|
||||||
Component = Ember.Component.extend
|
Component = Ember.Component.extend
|
||||||
actions: {
|
actions: {
|
||||||
sync: ->
|
sync: ->
|
||||||
console.log(@get('user'));
|
@get('user').sync()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
`export default Component`
|
`export default Component`
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
|
|
||||||
.sync-button
|
.sync-button
|
||||||
|
padding: 0.8em 0
|
||||||
button
|
button
|
||||||
@extend %border-radius-4px
|
@extend %border-radius-4px
|
||||||
padding: 0 10px
|
padding: 0 10px
|
||||||
|
@ -30,6 +31,7 @@
|
||||||
|
|
||||||
.sync-last
|
.sync-last
|
||||||
display: inline-block
|
display: inline-block
|
||||||
|
margin: 0
|
||||||
font-size: 12px
|
font-size: 12px
|
||||||
color: #848384
|
color: #848384
|
||||||
text-align: right
|
text-align: right
|
||||||
|
|
|
@ -99,7 +99,8 @@ $button-border-color: #d4d4d4
|
||||||
width: 8em
|
width: 8em
|
||||||
|
|
||||||
// temp
|
// temp
|
||||||
#auth #navigation .button--signin
|
#auth #navigation .button--signin,
|
||||||
|
#auth #navigation .button--signingin
|
||||||
display: none
|
display: none
|
||||||
|
|
||||||
.button--grey
|
.button--grey
|
||||||
|
|
|
@ -1,11 +1,14 @@
|
||||||
<div class="sync-button">
|
<div class="sync-button">
|
||||||
<p class="sync-last">last synced {{user.syncedAt}}</p>
|
{{#if user.isSyncing }}
|
||||||
<button {{action sync}} class="button">
|
|
||||||
<span class="icon icon-sync"></span>Sync account
|
|
||||||
</button>
|
|
||||||
<button class="button is-syncing">
|
<button class="button is-syncing">
|
||||||
<span class="sync-spinner"><i></i><i></i><i></i></span>Syncing from Github
|
<span class="sync-spinner"><i></i><i></i><i></i></span>Syncing from Github
|
||||||
</button>
|
</button>
|
||||||
|
{{else}}
|
||||||
|
<p class="sync-last">last synced {{format-time user.syncedAt}}</p>
|
||||||
|
<button {{action sync}} class="button">
|
||||||
|
<span class="icon icon-sync"></span>Sync account
|
||||||
|
</button>
|
||||||
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
<div id="filters" class="section section--white section--maxheight">
|
<div id="filters" class="section section--white section--maxheight">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|
||||||
{{orgs-filter orgs=orgs selected=selectedOrg action="selectOrg"}}
|
{{orgs-filter orgs=orgs selected=selectedOrg action="selectOrg"}}
|
||||||
|
|
||||||
<div class="float-right">
|
<div class="float-right">
|
||||||
{{sync-button user=auth.currentUser}}
|
{{sync-button user=auth.currentUser}}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user