55 <strong >You have 13 notifications</strong >
66 </div >
77 <b-button-group id =" notification-b-buttons" >
8- <b-button variant =" default" @click =" changeNotificationsTab(1)" >Notifications</b-button >
9- <b-button variant =" default" @click =" changeNotificationsTab(2)" >Messages</b-button >
10- <b-button variant =" default" @click =" changeNotificationsTab(3)" >Progress</b-button >
8+ <b-button variant =" default" @click =" changeNotificationsTab(1)"
9+ >Notifications</b-button
10+ >
11+ <b-button variant =" default" @click =" changeNotificationsTab(2)"
12+ >Messages</b-button
13+ >
14+ <b-button variant =" default" @click =" changeNotificationsTab(3)"
15+ >Progress</b-button
16+ >
1117 </b-button-group >
1218 </header >
1319 <NewNotifictionsList v-if =" newNotifications" />
1420 <NotifictionsList v-else-if =" notificationsTabSelected === 1" />
1521 <Messages v-else-if =" notificationsTabSelected === 2" />
1622 <Progress v-else-if =" notificationsTabSelected === 3" />
17- <NotifictionsList v-else />
23+ <NotifictionsList v-else />
1824 <footer class =" cardFooter text-sm card-footer" >
1925 <span class =" fs-mini" >Synced at: 21 Apr 2014 18:36</span >
2026 <b-button
2127 variant =" link"
2228 @click =" loadNotifications"
23- :class =" {disabled: isLoad, 'btnNotificationsReload btn-xs float-right py-0': true}"
29+ :class =" {
30+ disabled: isLoad,
31+ 'btnNotificationsReload btn-xs float-right py-0': true,
32+ }"
2433 >
25- <span v-if =" isLoad" ><i class =" la la-refresh la-spin" /> Loading...</span >
34+ <span v-if =" isLoad"
35+ ><i class =" la la-refresh la-spin" /> Loading...</span
36+ >
2637 <i v-else class =" la la-refresh" />
2738 </b-button >
2839 </footer >
2940 </section >
3041</template >
3142
3243<script >
33- import Vue from ' vue' ;
44+ import Vue from " vue" ;
3445
35- import NotifictionsList from ' ./NotificationsDemo/NotificationsList' ;
36- import NewNotifictionsList from ' ./NotificationsDemo/NewNotificationsList' ;
37- import Messages from ' ./NotificationsDemo/Messages' ;
38- import Progress from ' ./NotificationsDemo/Progress' ;
46+ import NotifictionsList from " ./NotificationsDemo/NotificationsList" ;
47+ import NewNotifictionsList from " ./NotificationsDemo/NewNotificationsList" ;
48+ import Messages from " ./NotificationsDemo/Messages" ;
49+ import Progress from " ./NotificationsDemo/Progress" ;
3950
4051export default {
41- name: ' Notification' ,
52+ name: " Notification" ,
4253 components: {
43- NotifictionsList, NewNotifictionsList, Messages, Progress,
54+ NotifictionsList,
55+ NewNotifictionsList,
56+ Messages,
57+ Progress,
4458 },
4559 data () {
4660 return {
@@ -51,15 +65,16 @@ export default {
5165 },
5266 methods: {
5367 changeNotificationsTab (tab ) {
54- Vue .set (this , ' notificationsTabSelected' , tab);
55- Vue .set (this , ' newNotifications' , null );
68+ Vue .set (this , " notificationsTabSelected" , tab);
69+ Vue .set (this , " newNotifications" , null );
5670 },
5771 loadNotifications () {
58- Vue .set (this , ' isLoad' , true );
72+ Vue .set (this , " isLoad" , true );
5973
6074 setTimeout (() => {
61- Vue .set (this , ' newNotifications' , ' new notifications component' );
62- Vue .set (this , ' isLoad' , false );
75+ Vue .set (this , " newNotifications" , " new notifications component" );
76+ Vue .set (this , " isLoad" , false );
77+ this .changeNotificationsTab (1 );
6378 }, 1500 );
6479 },
6580 },
0 commit comments