mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-12-27 22:03:08 +02:00
oops
This commit is contained in:
parent
7b0b158c42
commit
9cf8e204c5
1 changed files with 4 additions and 4 deletions
|
@ -2,8 +2,8 @@
|
|||
<p class="title"><i class="fa fa-bar-chart"></i>%i18n:desktop.tags.mk-activity-home-widget.title%</p>
|
||||
<button onclick={ toggle } title="%i18n:desktop.tags.mk-activity-home-widget.toggle%"><i class="fa fa-sort"></i></button>
|
||||
<p class="initializing" if={ initializing }><i class="fa fa-spinner fa-pulse fa-fw"></i>%i18n:common.loading%<mk-ellipsis/></p>
|
||||
<mk-activity-home-widget-calender if={ !initializing && data.view == 0 } data={ [].concat(data) }/>
|
||||
<mk-activity-home-widget-chart if={ !initializing && data.view == 1 } data={ [].concat(data) }/>
|
||||
<mk-activity-home-widget-calender if={ !initializing && data.view == 0 } data={ [].concat(activity) }/>
|
||||
<mk-activity-home-widget-chart if={ !initializing && data.view == 1 } data={ [].concat(activity) }/>
|
||||
<style>
|
||||
:scope
|
||||
display block
|
||||
|
@ -62,10 +62,10 @@
|
|||
this.api('aggregation/users/activity', {
|
||||
user_id: this.I.id,
|
||||
limit: 20 * 7
|
||||
}).then(data => {
|
||||
}).then(activity => {
|
||||
this.update({
|
||||
initializing: false,
|
||||
data
|
||||
activity
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue