Blame view

src/pages/notification.vue 2.16 KB
93a68cfa1   Jatinder Singh   first commit
1
2
  <template>
   <v-app id="login">
a259e694f   Jatinder Singh   minor change
3

04e3fbc56   Jatinder Singh   minor fix
4
      <v-toolbar color="white">
93a68cfa1   Jatinder Singh   first commit
5
6
        <h4 class="text-lg-left"><b>Push Notification</b></h4>
        <v-spacer></v-spacer>
659b42db7   Neeraj Sharma   changes something...
7
        <v-flex xs5 sm4>
250d1e021   Jatinder Singh   datatable change
8
        <v-text-field justify-right
93a68cfa1   Jatinder Singh   first commit
9
10
11
12
13
          prepend-icon="search"
          v-model="search"
          label="Find your users"
          single-line
          hide-details
4413a8d93   Jatinder Singh   changes
14
          color="black"
5ac5570a9   Jatinder Singh   datatable changes
15
        > 
93a68cfa1   Jatinder Singh   first commit
16
      </v-text-field>
4413a8d93   Jatinder Singh   changes
17
18
      </v-flex>
      </v-toolbar>
93a68cfa1   Jatinder Singh   first commit
19
20
21
22
      <v-card>
      <v-card-text>
      <v-flex xs12>
      <v-textarea
defcc5da3   Jatinder Singh   report page
23
          v-model="SendNotificationcredentials.message"
93a68cfa1   Jatinder Singh   first commit
24
25
26
27
28
29
30
31
          solo
          name="input-7-4"
          label="Hello Users!">
      </v-textarea>
      </v-flex>
      </v-card-text>
      <v-flex text-xs-right>
      <div>
09f34e0c8   Jatinder Singh   notification page
32
      <v-btn large class="text-lg-right" :disabled="!selected[0]" @click="send" color="black" id="active">send</v-btn>
93a68cfa1   Jatinder Singh   first commit
33
34
      </div></v-flex>
      <v-container grid-list-xl>
4413a8d93   Jatinder Singh   changes
35
      <v-card>
93a68cfa1   Jatinder Singh   first commit
36
37
38
39
40
      <v-data-table
        :headers="headers"
        :items="desserts"
        :search="search"
        v-model="selected"
ab72cb628   Jatinder Singh   report changes
41
        item-key="Name"
93a68cfa1   Jatinder Singh   first commit
42
        select-all
269061695   Jatinder Singh   changes
43
        class="text-xs-left"
5ac5570a9   Jatinder Singh   datatable changes
44
        :pagination.sync="pagination"
93a68cfa1   Jatinder Singh   first commit
45
      >
93a68cfa1   Jatinder Singh   first commit
46
      <template slot="items" slot-scope="props">
4413a8d93   Jatinder Singh   changes
47
        <th>
93a68cfa1   Jatinder Singh   first commit
48
49
50
51
52
          <v-checkbox
            v-model="props.selected"
            primary
            hide-details
          ></v-checkbox>
4413a8d93   Jatinder Singh   changes
53
        </th>
ab72cb628   Jatinder Singh   report changes
54
        <td>{{ props.item.Name }}</td>
93a68cfa1   Jatinder Singh   first commit
55
56
      </template>
      </v-data-table>
4413a8d93   Jatinder Singh   changes
57
        </v-card>
93a68cfa1   Jatinder Singh   first commit
58
59
60
61
62
      </v-container>
      </v-card>
   </v-app>
  </template>
  <script>
e173bab21   Jatinder Singh   api
63
  import axios from 'axios';
93a68cfa1   Jatinder Singh   first commit
64
65
66
  export default {
    data () {
      return {
defcc5da3   Jatinder Singh   report page
67
        message: '',
93a68cfa1   Jatinder Singh   first commit
68
69
        search: '',
        selected: [],
defcc5da3   Jatinder Singh   report page
70
        SendNotificationcredentials: {},
5ac5570a9   Jatinder Singh   datatable changes
71
72
73
        pagination: {
          rowsPerPage: 10,
        },
93a68cfa1   Jatinder Singh   first commit
74
75
76
77
78
        headers: [
          {
            text: 'User List',
            align: 'left',
            sortable: false,
4413a8d93   Jatinder Singh   changes
79
        
93a68cfa1   Jatinder Singh   first commit
80
          },
93a68cfa1   Jatinder Singh   first commit
81
82
83
        ],
        desserts: [
          {
ab72cb628   Jatinder Singh   report changes
84
            Name: 'ajay',
4413a8d93   Jatinder Singh   changes
85
86
          },
          {
ab72cb628   Jatinder Singh   report changes
87
            Name: 'amrit',
4413a8d93   Jatinder Singh   changes
88
89
          },
          {
ab72cb628   Jatinder Singh   report changes
90
            Name: 'Disant',
4413a8d93   Jatinder Singh   changes
91
92
          },
          {
ab72cb628   Jatinder Singh   report changes
93
            Name: 'Pardeep',
5ac5570a9   Jatinder Singh   datatable changes
94
          }
93a68cfa1   Jatinder Singh   first commit
95
96
        ]
      };
4413a8d93   Jatinder Singh   changes
97
98
    },
    methods: {
defcc5da3   Jatinder Singh   report page
99
100
101
      send () {
        console.log('=clicked==', this.SendNotificationcredentials);
      }
93a68cfa1   Jatinder Singh   first commit
102
103
    }
  };
8fc85e8ec   Jatinder Singh   data table changes
104
  </script>
09f34e0c8   Jatinder Singh   notification page
105
106
107
108
  <style>
  #active{
   color:white;
  }
f42c1d9c9   Neeraj Sharma   something change ...
109
  /* .v-btn--large {
09f34e0c8   Jatinder Singh   notification page
110
  padding: 0 50px;
f42c1d9c9   Neeraj Sharma   something change ...
111
  } */
09f34e0c8   Jatinder Singh   notification page
112
  </style>