Blame view

src/components/pageHeader/AppToolbar.vue 2.43 KB
93a68cfa1   Jatinder Singh   first commit
1
2
  <template>
    <v-toolbar
d75967ec2   Neeraj Sharma   implemented chang...
3
      class="fixcolors"
93a68cfa1   Jatinder Singh   first commit
4
      fixed
93a68cfa1   Jatinder Singh   first commit
5
      app
defcc5da3   Jatinder Singh   report page
6
    >
03dcbf0c1   Neeraj Sharma   fix all api and r...
7
8
9
      <v-toolbar-title class="ml-0 pl-3">
      <v-toolbar-side-icon @click.stop="handleDrawerToggle" class="hide"></v-toolbar-side-icon>
      </v-toolbar-title>
93a68cfa1   Jatinder Singh   first commit
10
        <v-spacer></v-spacer>
93a68cfa1   Jatinder Singh   first commit
11
12
        <v-menu offset-y origin="center center" :nudge-bottom="10" transition="scale-transition">
       <v-btn icon large flat slot="activator">
269061695   Jatinder Singh   changes
13
14
            <v-avatar size="40px">
             <img src="/static/icon/user.png"/>
93a68cfa1   Jatinder Singh   first commit
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
            </v-avatar>
        </v-btn>
          <v-list class="pa-0">
            <v-list-tile v-for="(item,index) in items" :to="!item.href ? { name: item.name } : null" :href="item.href" @click="item.click" ripple="ripple" :disabled="item.disabled" :target="item.target" rel="noopener" :key="index">
               <v-list-tile-action v-if="item.icon">
                <v-icon>{{ item.icon }}</v-icon>
              </v-list-tile-action>
              <v-list-tile-content>
                <v-list-tile-title>{{ item.title }}</v-list-tile-title>
              </v-list-tile-content>
            </v-list-tile>
          </v-list> 
        </v-menu>
    </v-toolbar>
  </template>
  <script>
03dcbf0c1   Neeraj Sharma   fix all api and r...
31
  import Util from "@/util";
93a68cfa1   Jatinder Singh   first commit
32
  export default {
03dcbf0c1   Neeraj Sharma   fix all api and r...
33
34
    search: "",
    name: "app-toolbar",
93a68cfa1   Jatinder Singh   first commit
35
    data: () => ({
03dcbf0c1   Neeraj Sharma   fix all api and r...
36
      search: "",
eba96ec51   Neeraj Sharma   set login name on...
37
      userName:'',
93a68cfa1   Jatinder Singh   first commit
38
39
40
      items: [
        {
          // icon: 'account_circle',
03dcbf0c1   Neeraj Sharma   fix all api and r...
41
42
43
          href: "/changepassword",
          title: "Change Password",
          click: e => {
93a68cfa1   Jatinder Singh   first commit
44
45
46
47
48
49
50
51
52
53
54
55
56
            console.log(e);
          }
        },
        // {
        //   icon: 'settings',
        //   href: '#',
        //   title: 'Settings',
        //   click: (e) => {
        //     console.log(e);
        //   }
        // },
        {
          // icon: 'fullscreen_exit',
03dcbf0c1   Neeraj Sharma   fix all api and r...
57
58
59
60
          href: "#",
          title: "Logout",
          click: e => {
            window.getApp.$emit("APP_LOGOUT");
93a68cfa1   Jatinder Singh   first commit
61
62
          }
        }
03dcbf0c1   Neeraj Sharma   fix all api and r...
63
      ]
93a68cfa1   Jatinder Singh   first commit
64
65
    }),
    computed: {
03dcbf0c1   Neeraj Sharma   fix all api and r...
66
      toolbarColor() {
93a68cfa1   Jatinder Singh   first commit
67
68
69
70
        return this.$vuetify.options.extra.mainNav;
      }
    },
    methods: {
03dcbf0c1   Neeraj Sharma   fix all api and r...
71
72
      handleDrawerToggle() {
        window.getApp.$emit("APP_DRAWER_TOGGLED");
93a68cfa1   Jatinder Singh   first commit
73
      },
03dcbf0c1   Neeraj Sharma   fix all api and r...
74
      handleFullScreen() {
93a68cfa1   Jatinder Singh   first commit
75
76
        Util.toggleFullScreen();
      }
eba96ec51   Neeraj Sharma   set login name on...
77
    }, 
93a68cfa1   Jatinder Singh   first commit
78
79
  };
  </script>
03dcbf0c1   Neeraj Sharma   fix all api and r...
80
81
82
83
84
85
86
87
  <style>
  .v-icon{
    font-size:30px;
  }
  @media screen and (min-width: 1270px){
  .hide{
    display: none;
  }
a0fe54618   Neeraj Sharma   finally fix
88
89
90
  /* }
  @media screen and (max-width: 962px) {
  .imglogo{
659b42db7   Neeraj Sharma   changes something...
91
92
93
94
95
      position: absolute;
      top: 13px;
      left: 13px !important;
      width: 70px;
      height: 24px;
f42c1d9c9   Neeraj Sharma   something change ...
96
  } */
a0fe54618   Neeraj Sharma   finally fix
97
  }
a647b5fbe   Neeraj Sharma   fix logo
98
  @media screen and (max-width: 420px){
03dcbf0c1   Neeraj Sharma   fix all api and r...
99
100
101
102
  .v-list__tile {
    font-size:14px;
    padding: 0 10px;
  }
659b42db7   Neeraj Sharma   changes something...
103
104
105
  .name{
    font-size:15px; 
  }
03dcbf0c1   Neeraj Sharma   fix all api and r...
106
107
  }
  </style>