File tree Expand file tree Collapse file tree 1 file changed +31
-2
lines changed Expand file tree Collapse file tree 1 file changed +31
-2
lines changed Original file line number Diff line number Diff line change @@ -161,7 +161,27 @@ h5 span {
161
161
<th class =" sticky-header" >Session Id</th >
162
162
<th class =" sticky-header" >User Id (Hash)</th >
163
163
<th class =" sticky-header" >Steps</th >
164
- <th class =" sticky-header" >Status</th >
164
+ <th class =" sticky-header" style =" position : relative ;" >
165
+ Status
166
+ <b-dropdown
167
+ size =" sm"
168
+ variant =" light"
169
+ toggle-class =" p-1 ml-2"
170
+ menu-class =" dropDownPopup"
171
+ no-caret
172
+ right
173
+ >
174
+ <template #button-content >
175
+ <i class =" fa fa-filter text-muted" ></i >
176
+ </template >
177
+
178
+ <b-dropdown-item @click =" handleSessionFilter('')" >All</b-dropdown-item >
179
+ <b-dropdown-item @click =" handleSessionFilter('Pending')" >In Progress</b-dropdown-item >
180
+ <b-dropdown-item @click =" handleSessionFilter('Success')" >Completed</b-dropdown-item >
181
+ <b-dropdown-item @click =" handleSessionFilter('Expired')" >Expired</b-dropdown-item >
182
+ <b-dropdown-item @click =" handleSessionFilter('Failed')" >Failed</b-dropdown-item >
183
+ </b-dropdown >
184
+ </th >
165
185
</tr >
166
186
</thead >
167
187
<tbody >
@@ -360,7 +380,16 @@ export default {
360
380
this .notifyErr (e)
361
381
}
362
382
},
363
-
383
+ async handleSessionFilter (status ){
384
+ try {
385
+ this .isLoading = true
386
+ await this .fetchAppsUsersSessions ({ appId: " " , status: status })
387
+ this .isLoading = false
388
+ } catch (e) {
389
+ this .isLoading = false
390
+ this .notifyErr (e)
391
+ }
392
+ },
364
393
async filterSessions (filterText ) {
365
394
try {
366
395
if (filterText) {
You can’t perform that action at this time.
0 commit comments