This commit is contained in:
syuilo 2017-11-12 04:53:00 +09:00
parent 180afdb034
commit ee480b07e3

View File

@ -2,8 +2,8 @@
<p class="title"><i class="fa fa-bar-chart"></i>%i18n:desktop.tags.mk-activity-home-widget.title%</p> <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> <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> <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-calender if={ !initializing && data.view == 0 } data={ [].concat(activity) }/>
<mk-activity-home-widget-chart if={ !initializing && data.view == 1 } data={ [].concat(data) }/> <mk-activity-home-widget-chart if={ !initializing && data.view == 1 } data={ [].concat(activity) }/>
<style> <style>
:scope :scope
display block display block
@ -62,10 +62,10 @@
this.api('aggregation/users/activity', { this.api('aggregation/users/activity', {
user_id: this.I.id, user_id: this.I.id,
limit: 20 * 7 limit: 20 * 7
}).then(data => { }).then(activity => {
this.update({ this.update({
initializing: false, initializing: false,
data activity
}); });
}); });
}); });