1- <template >
2- <div >
3- <v-layout class =" ma-5" justify-center >
4- <div v-if =" !isLoading" >
5- <UserDetails />
6- <div class =" mt-5 orgs" >Organizations</div >
7- <OrgList />
8- </div >
9- <div v-if =" isLoading" >
10- <img src =" @/assets/loaders/block.svg" alt =" loading..." >
11- </div >
12- </v-layout >
13- </div >
14- </template >
15-
16- <script >
17- import UserDetails from ' ../components/home/UserDetails' ;
18- import OrgList from ' ../components/home/OrgList' ;
19-
20- export default {
21- name: ' HomeView' ,
22- computed: {
23- isLoading () {
24- return this .$store .state .user == ' ' && this .$store .state .userOrgs == ' '
25- ? true
26- : false ;
27- }
28- },
29- components: {
30- UserDetails,
31- OrgList
32- },
33- created () {
34- this .$store .dispatch (' loadUser' );
35- this .$store .dispatch (' loadUserOrgs' );
36- }
37- };
38- </script >
39-
40- <style lang="scss" scoped>
41- .orgs {
42- font-size : 20px ;
43- }
44- </style >
1+ <template >
2+ <div >
3+ <v-layout class =" ma-5" justify-center >
4+ <div v-if =" !isLoading" >
5+ <v-btn style =" margin-bottom : 30px ;" >
6+ <a href =" #/newbadge" >Create a New Badge</a >
7+ </v-btn >
8+ <UserDetails />
9+ <div class =" mt-5 orgs" >
10+ <center >Organizations</center ></div >
11+ <OrgList />
12+ </div >
13+ <div v-if =" isLoading" >
14+ <img src =" @/assets/loaders/block.svg" alt =" loading..." >
15+ </div >
16+ </v-layout >
17+ </div >
18+ </template >
19+
20+ <script >
21+ import UserDetails from ' ../components/home/UserDetails' ;
22+ import OrgList from ' ../components/home/OrgList' ;
23+
24+ export default {
25+ name: ' HomeView' ,
26+ computed: {
27+ isLoading () {
28+ return this .$store .state .user == ' ' && this .$store .state .userOrgs == ' '
29+ ? true
30+ : false ;
31+ }
32+ },
33+ components: {
34+ UserDetails,
35+ OrgList
36+ },
37+ created () {
38+ this .$store .dispatch (' loadUser' );
39+ this .$store .dispatch (' loadUserOrgs' );
40+ }
41+ };
42+ </script >
43+
44+ <style lang="scss" scoped>
45+ .orgs {
46+ font-size : 20px ;
47+ }
48+
49+ A {
50+ color : inherit !important ;
51+ text-decoration : none !important ;
52+ font-size : inherit !important ;
53+ font-family : inherit !important ;
54+ font-weight : inherit !important ;
55+ line-height : inherit !important ;
56+ }
57+ </style >
0 commit comments