mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-11-24 23:26:07 +09:00
oops
This commit is contained in:
parent
180afdb034
commit
ee480b07e3
@ -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 New Issue
Block a user