File tree Expand file tree Collapse file tree 1 file changed +22
-1
lines changed Expand file tree Collapse file tree 1 file changed +22
-1
lines changed Original file line number Diff line number Diff line change 10
10
:per-page =" perPage" >
11
11
</b-pagination >
12
12
13
+ <input v-model.number =" perPage"
14
+ title =" Rows per page"
15
+ min =" 1"
16
+ max =" 99"
17
+ type =" number"
18
+ />
19
+
13
20
<b-btn v-b-modal.new-event-modal size =" sm" variant =" primary" >New Event</b-btn >
14
21
<b-modal id =" new-event-modal"
15
22
title =" New Game Event"
87
94
}
88
95
},
89
96
},
97
+ mounted () {
98
+ if (localStorage .gameEventsPerPage ) {
99
+ this .perPage = parseInt (localStorage .gameEventsPerPage );
100
+ }
101
+ },
102
+ watch: {
103
+ perPage (perPage ) {
104
+ localStorage .gameEventsPerPage = perPage;
105
+ }
106
+ }
90
107
}
91
108
</script >
92
109
97
114
justify-content : center ;
98
115
}
99
116
100
- .event-controls-container button {
117
+ .event-controls-container button , input {
101
118
margin-bottom : 1rem ;
102
119
margin-left : 1rem ;
103
120
}
106
123
margin-top : 0.2rem ;
107
124
margin-right : 1rem ;
108
125
}
126
+
127
+ input {
128
+ text-align : center ;
129
+ }
109
130
</style >
You can’t perform that action at this time.
0 commit comments