foreman-tasks 3.0.0 → 3.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/js_tests.yml +5 -1
- data/app/controllers/foreman_tasks/api/tasks_controller.rb +1 -2
- data/app/models/setting/foreman_tasks.rb +8 -8
- data/app/services/foreman_tasks/dashboard_table_filter.rb +5 -1
- data/lib/foreman_tasks/version.rb +1 -1
- data/test/controllers/api/tasks_controller_test.rb +10 -0
- data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/ScheduledTasksCard/ScheduledTasksCard.scss +4 -0
- data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/StoppedTasksCard/OtherInfo.js +53 -0
- data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/StoppedTasksCard/OtherInfo.test.js +14 -0
- data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/StoppedTasksCard/StoppedTasksCard.js +27 -19
- data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/StoppedTasksCard/StoppedTasksCard.scss +14 -0
- data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/StoppedTasksCard/StoppedTasksCard.test.js +1 -34
- data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/StoppedTasksCard/{StoppedTasksCardHelper.js → StoppedTasksCardTable.js} +28 -1
- data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/StoppedTasksCard/StoppedTasksCardTable.test.js +54 -0
- data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/StoppedTasksCard/__snapshots__/OtherInfo.test.js.snap +48 -0
- data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/StoppedTasksCard/__snapshots__/StoppedTasksCard.test.js.snap +60 -1367
- data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/StoppedTasksCard/__snapshots__/StoppedTasksCardTable.test.js.snap +960 -0
- data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/__snapshots__/TasksCardsGrid.test.js.snap +14 -11
- data/webpack/ForemanTasks/Components/TasksDashboard/TasksDashboardConstants.js +2 -0
- data/webpack/ForemanTasks/Components/TasksDashboard/TasksDashboardSelectors.js +17 -11
- data/webpack/ForemanTasks/Components/TasksDashboard/__tests__/TasksDashboardSelectors.test.js +26 -14
- data/webpack/ForemanTasks/Components/TasksDashboard/__tests__/__snapshots__/TasksDashboard.test.js.snap +14 -11
- data/webpack/ForemanTasks/Components/TasksDashboard/__tests__/__snapshots__/TasksDashboardSelectors.test.js.snap +38 -22
- metadata +8 -3
@@ -0,0 +1,960 @@
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
2
|
+
|
3
|
+
exports[`StoppedTable render error-last selected 1`] = `
|
4
|
+
<table
|
5
|
+
className="table table-bordered table-striped stopped-table"
|
6
|
+
>
|
7
|
+
<thead>
|
8
|
+
<tr>
|
9
|
+
<th />
|
10
|
+
<th>
|
11
|
+
Total
|
12
|
+
</th>
|
13
|
+
<th>
|
14
|
+
week
|
15
|
+
</th>
|
16
|
+
</tr>
|
17
|
+
</thead>
|
18
|
+
<tbody>
|
19
|
+
<tr
|
20
|
+
key="error"
|
21
|
+
>
|
22
|
+
<td>
|
23
|
+
<Icon
|
24
|
+
name="error-circle-o"
|
25
|
+
type="pf"
|
26
|
+
/>
|
27
|
+
Error
|
28
|
+
</td>
|
29
|
+
<td
|
30
|
+
className="data-col not-focused"
|
31
|
+
onClick={[Function]}
|
32
|
+
>
|
33
|
+
<Button
|
34
|
+
active={false}
|
35
|
+
block={false}
|
36
|
+
bsClass="btn"
|
37
|
+
bsStyle="link"
|
38
|
+
disabled={false}
|
39
|
+
>
|
40
|
+
9
|
41
|
+
</Button>
|
42
|
+
</td>
|
43
|
+
<td
|
44
|
+
className="data-col active"
|
45
|
+
onClick={[Function]}
|
46
|
+
>
|
47
|
+
<Button
|
48
|
+
active={false}
|
49
|
+
block={false}
|
50
|
+
bsClass="btn"
|
51
|
+
bsStyle="link"
|
52
|
+
disabled={false}
|
53
|
+
>
|
54
|
+
1
|
55
|
+
</Button>
|
56
|
+
</td>
|
57
|
+
</tr>
|
58
|
+
<tr
|
59
|
+
key="warning"
|
60
|
+
>
|
61
|
+
<td>
|
62
|
+
<Icon
|
63
|
+
name="warning-triangle-o"
|
64
|
+
type="pf"
|
65
|
+
/>
|
66
|
+
Warning
|
67
|
+
</td>
|
68
|
+
<td
|
69
|
+
className="data-col not-focused"
|
70
|
+
onClick={[Function]}
|
71
|
+
>
|
72
|
+
<Button
|
73
|
+
active={false}
|
74
|
+
block={false}
|
75
|
+
bsClass="btn"
|
76
|
+
bsStyle="link"
|
77
|
+
disabled={false}
|
78
|
+
>
|
79
|
+
8
|
80
|
+
</Button>
|
81
|
+
</td>
|
82
|
+
<td
|
83
|
+
className="data-col not-focused"
|
84
|
+
onClick={[Function]}
|
85
|
+
>
|
86
|
+
<Button
|
87
|
+
active={false}
|
88
|
+
block={false}
|
89
|
+
bsClass="btn"
|
90
|
+
bsStyle="link"
|
91
|
+
disabled={false}
|
92
|
+
>
|
93
|
+
2
|
94
|
+
</Button>
|
95
|
+
</td>
|
96
|
+
</tr>
|
97
|
+
<tr
|
98
|
+
key="success"
|
99
|
+
>
|
100
|
+
<td>
|
101
|
+
<Icon
|
102
|
+
name="ok"
|
103
|
+
type="pf"
|
104
|
+
/>
|
105
|
+
Success
|
106
|
+
</td>
|
107
|
+
<td
|
108
|
+
className="data-col not-focused"
|
109
|
+
onClick={[Function]}
|
110
|
+
>
|
111
|
+
<Button
|
112
|
+
active={false}
|
113
|
+
block={false}
|
114
|
+
bsClass="btn"
|
115
|
+
bsStyle="link"
|
116
|
+
disabled={false}
|
117
|
+
>
|
118
|
+
7
|
119
|
+
</Button>
|
120
|
+
</td>
|
121
|
+
<td
|
122
|
+
className="data-col not-focused"
|
123
|
+
onClick={[Function]}
|
124
|
+
>
|
125
|
+
<Button
|
126
|
+
active={false}
|
127
|
+
block={false}
|
128
|
+
bsClass="btn"
|
129
|
+
bsStyle="link"
|
130
|
+
disabled={false}
|
131
|
+
>
|
132
|
+
3
|
133
|
+
</Button>
|
134
|
+
</td>
|
135
|
+
</tr>
|
136
|
+
</tbody>
|
137
|
+
</table>
|
138
|
+
`;
|
139
|
+
|
140
|
+
exports[`StoppedTable render error-total selected 1`] = `
|
141
|
+
<table
|
142
|
+
className="table table-bordered table-striped stopped-table"
|
143
|
+
>
|
144
|
+
<thead>
|
145
|
+
<tr>
|
146
|
+
<th />
|
147
|
+
<th>
|
148
|
+
Total
|
149
|
+
</th>
|
150
|
+
<th>
|
151
|
+
week
|
152
|
+
</th>
|
153
|
+
</tr>
|
154
|
+
</thead>
|
155
|
+
<tbody>
|
156
|
+
<tr
|
157
|
+
key="error"
|
158
|
+
>
|
159
|
+
<td>
|
160
|
+
<Icon
|
161
|
+
name="error-circle-o"
|
162
|
+
type="pf"
|
163
|
+
/>
|
164
|
+
Error
|
165
|
+
</td>
|
166
|
+
<td
|
167
|
+
className="data-col active"
|
168
|
+
onClick={[Function]}
|
169
|
+
>
|
170
|
+
<Button
|
171
|
+
active={false}
|
172
|
+
block={false}
|
173
|
+
bsClass="btn"
|
174
|
+
bsStyle="link"
|
175
|
+
disabled={false}
|
176
|
+
>
|
177
|
+
9
|
178
|
+
</Button>
|
179
|
+
</td>
|
180
|
+
<td
|
181
|
+
className="data-col not-focused"
|
182
|
+
onClick={[Function]}
|
183
|
+
>
|
184
|
+
<Button
|
185
|
+
active={false}
|
186
|
+
block={false}
|
187
|
+
bsClass="btn"
|
188
|
+
bsStyle="link"
|
189
|
+
disabled={false}
|
190
|
+
>
|
191
|
+
1
|
192
|
+
</Button>
|
193
|
+
</td>
|
194
|
+
</tr>
|
195
|
+
<tr
|
196
|
+
key="warning"
|
197
|
+
>
|
198
|
+
<td>
|
199
|
+
<Icon
|
200
|
+
name="warning-triangle-o"
|
201
|
+
type="pf"
|
202
|
+
/>
|
203
|
+
Warning
|
204
|
+
</td>
|
205
|
+
<td
|
206
|
+
className="data-col not-focused"
|
207
|
+
onClick={[Function]}
|
208
|
+
>
|
209
|
+
<Button
|
210
|
+
active={false}
|
211
|
+
block={false}
|
212
|
+
bsClass="btn"
|
213
|
+
bsStyle="link"
|
214
|
+
disabled={false}
|
215
|
+
>
|
216
|
+
8
|
217
|
+
</Button>
|
218
|
+
</td>
|
219
|
+
<td
|
220
|
+
className="data-col not-focused"
|
221
|
+
onClick={[Function]}
|
222
|
+
>
|
223
|
+
<Button
|
224
|
+
active={false}
|
225
|
+
block={false}
|
226
|
+
bsClass="btn"
|
227
|
+
bsStyle="link"
|
228
|
+
disabled={false}
|
229
|
+
>
|
230
|
+
2
|
231
|
+
</Button>
|
232
|
+
</td>
|
233
|
+
</tr>
|
234
|
+
<tr
|
235
|
+
key="success"
|
236
|
+
>
|
237
|
+
<td>
|
238
|
+
<Icon
|
239
|
+
name="ok"
|
240
|
+
type="pf"
|
241
|
+
/>
|
242
|
+
Success
|
243
|
+
</td>
|
244
|
+
<td
|
245
|
+
className="data-col not-focused"
|
246
|
+
onClick={[Function]}
|
247
|
+
>
|
248
|
+
<Button
|
249
|
+
active={false}
|
250
|
+
block={false}
|
251
|
+
bsClass="btn"
|
252
|
+
bsStyle="link"
|
253
|
+
disabled={false}
|
254
|
+
>
|
255
|
+
7
|
256
|
+
</Button>
|
257
|
+
</td>
|
258
|
+
<td
|
259
|
+
className="data-col not-focused"
|
260
|
+
onClick={[Function]}
|
261
|
+
>
|
262
|
+
<Button
|
263
|
+
active={false}
|
264
|
+
block={false}
|
265
|
+
bsClass="btn"
|
266
|
+
bsStyle="link"
|
267
|
+
disabled={false}
|
268
|
+
>
|
269
|
+
3
|
270
|
+
</Button>
|
271
|
+
</td>
|
272
|
+
</tr>
|
273
|
+
</tbody>
|
274
|
+
</table>
|
275
|
+
`;
|
276
|
+
|
277
|
+
exports[`StoppedTable render success-last selected 1`] = `
|
278
|
+
<table
|
279
|
+
className="table table-bordered table-striped stopped-table"
|
280
|
+
>
|
281
|
+
<thead>
|
282
|
+
<tr>
|
283
|
+
<th />
|
284
|
+
<th>
|
285
|
+
Total
|
286
|
+
</th>
|
287
|
+
<th>
|
288
|
+
week
|
289
|
+
</th>
|
290
|
+
</tr>
|
291
|
+
</thead>
|
292
|
+
<tbody>
|
293
|
+
<tr
|
294
|
+
key="error"
|
295
|
+
>
|
296
|
+
<td>
|
297
|
+
<Icon
|
298
|
+
name="error-circle-o"
|
299
|
+
type="pf"
|
300
|
+
/>
|
301
|
+
Error
|
302
|
+
</td>
|
303
|
+
<td
|
304
|
+
className="data-col not-focused"
|
305
|
+
onClick={[Function]}
|
306
|
+
>
|
307
|
+
<Button
|
308
|
+
active={false}
|
309
|
+
block={false}
|
310
|
+
bsClass="btn"
|
311
|
+
bsStyle="link"
|
312
|
+
disabled={false}
|
313
|
+
>
|
314
|
+
9
|
315
|
+
</Button>
|
316
|
+
</td>
|
317
|
+
<td
|
318
|
+
className="data-col not-focused"
|
319
|
+
onClick={[Function]}
|
320
|
+
>
|
321
|
+
<Button
|
322
|
+
active={false}
|
323
|
+
block={false}
|
324
|
+
bsClass="btn"
|
325
|
+
bsStyle="link"
|
326
|
+
disabled={false}
|
327
|
+
>
|
328
|
+
1
|
329
|
+
</Button>
|
330
|
+
</td>
|
331
|
+
</tr>
|
332
|
+
<tr
|
333
|
+
key="warning"
|
334
|
+
>
|
335
|
+
<td>
|
336
|
+
<Icon
|
337
|
+
name="warning-triangle-o"
|
338
|
+
type="pf"
|
339
|
+
/>
|
340
|
+
Warning
|
341
|
+
</td>
|
342
|
+
<td
|
343
|
+
className="data-col not-focused"
|
344
|
+
onClick={[Function]}
|
345
|
+
>
|
346
|
+
<Button
|
347
|
+
active={false}
|
348
|
+
block={false}
|
349
|
+
bsClass="btn"
|
350
|
+
bsStyle="link"
|
351
|
+
disabled={false}
|
352
|
+
>
|
353
|
+
8
|
354
|
+
</Button>
|
355
|
+
</td>
|
356
|
+
<td
|
357
|
+
className="data-col not-focused"
|
358
|
+
onClick={[Function]}
|
359
|
+
>
|
360
|
+
<Button
|
361
|
+
active={false}
|
362
|
+
block={false}
|
363
|
+
bsClass="btn"
|
364
|
+
bsStyle="link"
|
365
|
+
disabled={false}
|
366
|
+
>
|
367
|
+
2
|
368
|
+
</Button>
|
369
|
+
</td>
|
370
|
+
</tr>
|
371
|
+
<tr
|
372
|
+
key="success"
|
373
|
+
>
|
374
|
+
<td>
|
375
|
+
<Icon
|
376
|
+
name="ok"
|
377
|
+
type="pf"
|
378
|
+
/>
|
379
|
+
Success
|
380
|
+
</td>
|
381
|
+
<td
|
382
|
+
className="data-col not-focused"
|
383
|
+
onClick={[Function]}
|
384
|
+
>
|
385
|
+
<Button
|
386
|
+
active={false}
|
387
|
+
block={false}
|
388
|
+
bsClass="btn"
|
389
|
+
bsStyle="link"
|
390
|
+
disabled={false}
|
391
|
+
>
|
392
|
+
7
|
393
|
+
</Button>
|
394
|
+
</td>
|
395
|
+
<td
|
396
|
+
className="data-col active"
|
397
|
+
onClick={[Function]}
|
398
|
+
>
|
399
|
+
<Button
|
400
|
+
active={false}
|
401
|
+
block={false}
|
402
|
+
bsClass="btn"
|
403
|
+
bsStyle="link"
|
404
|
+
disabled={false}
|
405
|
+
>
|
406
|
+
3
|
407
|
+
</Button>
|
408
|
+
</td>
|
409
|
+
</tr>
|
410
|
+
</tbody>
|
411
|
+
</table>
|
412
|
+
`;
|
413
|
+
|
414
|
+
exports[`StoppedTable render success-total selected 1`] = `
|
415
|
+
<table
|
416
|
+
className="table table-bordered table-striped stopped-table"
|
417
|
+
>
|
418
|
+
<thead>
|
419
|
+
<tr>
|
420
|
+
<th />
|
421
|
+
<th>
|
422
|
+
Total
|
423
|
+
</th>
|
424
|
+
<th>
|
425
|
+
week
|
426
|
+
</th>
|
427
|
+
</tr>
|
428
|
+
</thead>
|
429
|
+
<tbody>
|
430
|
+
<tr
|
431
|
+
key="error"
|
432
|
+
>
|
433
|
+
<td>
|
434
|
+
<Icon
|
435
|
+
name="error-circle-o"
|
436
|
+
type="pf"
|
437
|
+
/>
|
438
|
+
Error
|
439
|
+
</td>
|
440
|
+
<td
|
441
|
+
className="data-col not-focused"
|
442
|
+
onClick={[Function]}
|
443
|
+
>
|
444
|
+
<Button
|
445
|
+
active={false}
|
446
|
+
block={false}
|
447
|
+
bsClass="btn"
|
448
|
+
bsStyle="link"
|
449
|
+
disabled={false}
|
450
|
+
>
|
451
|
+
9
|
452
|
+
</Button>
|
453
|
+
</td>
|
454
|
+
<td
|
455
|
+
className="data-col not-focused"
|
456
|
+
onClick={[Function]}
|
457
|
+
>
|
458
|
+
<Button
|
459
|
+
active={false}
|
460
|
+
block={false}
|
461
|
+
bsClass="btn"
|
462
|
+
bsStyle="link"
|
463
|
+
disabled={false}
|
464
|
+
>
|
465
|
+
1
|
466
|
+
</Button>
|
467
|
+
</td>
|
468
|
+
</tr>
|
469
|
+
<tr
|
470
|
+
key="warning"
|
471
|
+
>
|
472
|
+
<td>
|
473
|
+
<Icon
|
474
|
+
name="warning-triangle-o"
|
475
|
+
type="pf"
|
476
|
+
/>
|
477
|
+
Warning
|
478
|
+
</td>
|
479
|
+
<td
|
480
|
+
className="data-col not-focused"
|
481
|
+
onClick={[Function]}
|
482
|
+
>
|
483
|
+
<Button
|
484
|
+
active={false}
|
485
|
+
block={false}
|
486
|
+
bsClass="btn"
|
487
|
+
bsStyle="link"
|
488
|
+
disabled={false}
|
489
|
+
>
|
490
|
+
8
|
491
|
+
</Button>
|
492
|
+
</td>
|
493
|
+
<td
|
494
|
+
className="data-col not-focused"
|
495
|
+
onClick={[Function]}
|
496
|
+
>
|
497
|
+
<Button
|
498
|
+
active={false}
|
499
|
+
block={false}
|
500
|
+
bsClass="btn"
|
501
|
+
bsStyle="link"
|
502
|
+
disabled={false}
|
503
|
+
>
|
504
|
+
2
|
505
|
+
</Button>
|
506
|
+
</td>
|
507
|
+
</tr>
|
508
|
+
<tr
|
509
|
+
key="success"
|
510
|
+
>
|
511
|
+
<td>
|
512
|
+
<Icon
|
513
|
+
name="ok"
|
514
|
+
type="pf"
|
515
|
+
/>
|
516
|
+
Success
|
517
|
+
</td>
|
518
|
+
<td
|
519
|
+
className="data-col active"
|
520
|
+
onClick={[Function]}
|
521
|
+
>
|
522
|
+
<Button
|
523
|
+
active={false}
|
524
|
+
block={false}
|
525
|
+
bsClass="btn"
|
526
|
+
bsStyle="link"
|
527
|
+
disabled={false}
|
528
|
+
>
|
529
|
+
7
|
530
|
+
</Button>
|
531
|
+
</td>
|
532
|
+
<td
|
533
|
+
className="data-col not-focused"
|
534
|
+
onClick={[Function]}
|
535
|
+
>
|
536
|
+
<Button
|
537
|
+
active={false}
|
538
|
+
block={false}
|
539
|
+
bsClass="btn"
|
540
|
+
bsStyle="link"
|
541
|
+
disabled={false}
|
542
|
+
>
|
543
|
+
3
|
544
|
+
</Button>
|
545
|
+
</td>
|
546
|
+
</tr>
|
547
|
+
</tbody>
|
548
|
+
</table>
|
549
|
+
`;
|
550
|
+
|
551
|
+
exports[`StoppedTable render warning-last selected 1`] = `
|
552
|
+
<table
|
553
|
+
className="table table-bordered table-striped stopped-table"
|
554
|
+
>
|
555
|
+
<thead>
|
556
|
+
<tr>
|
557
|
+
<th />
|
558
|
+
<th>
|
559
|
+
Total
|
560
|
+
</th>
|
561
|
+
<th>
|
562
|
+
week
|
563
|
+
</th>
|
564
|
+
</tr>
|
565
|
+
</thead>
|
566
|
+
<tbody>
|
567
|
+
<tr
|
568
|
+
key="error"
|
569
|
+
>
|
570
|
+
<td>
|
571
|
+
<Icon
|
572
|
+
name="error-circle-o"
|
573
|
+
type="pf"
|
574
|
+
/>
|
575
|
+
Error
|
576
|
+
</td>
|
577
|
+
<td
|
578
|
+
className="data-col not-focused"
|
579
|
+
onClick={[Function]}
|
580
|
+
>
|
581
|
+
<Button
|
582
|
+
active={false}
|
583
|
+
block={false}
|
584
|
+
bsClass="btn"
|
585
|
+
bsStyle="link"
|
586
|
+
disabled={false}
|
587
|
+
>
|
588
|
+
9
|
589
|
+
</Button>
|
590
|
+
</td>
|
591
|
+
<td
|
592
|
+
className="data-col not-focused"
|
593
|
+
onClick={[Function]}
|
594
|
+
>
|
595
|
+
<Button
|
596
|
+
active={false}
|
597
|
+
block={false}
|
598
|
+
bsClass="btn"
|
599
|
+
bsStyle="link"
|
600
|
+
disabled={false}
|
601
|
+
>
|
602
|
+
1
|
603
|
+
</Button>
|
604
|
+
</td>
|
605
|
+
</tr>
|
606
|
+
<tr
|
607
|
+
key="warning"
|
608
|
+
>
|
609
|
+
<td>
|
610
|
+
<Icon
|
611
|
+
name="warning-triangle-o"
|
612
|
+
type="pf"
|
613
|
+
/>
|
614
|
+
Warning
|
615
|
+
</td>
|
616
|
+
<td
|
617
|
+
className="data-col not-focused"
|
618
|
+
onClick={[Function]}
|
619
|
+
>
|
620
|
+
<Button
|
621
|
+
active={false}
|
622
|
+
block={false}
|
623
|
+
bsClass="btn"
|
624
|
+
bsStyle="link"
|
625
|
+
disabled={false}
|
626
|
+
>
|
627
|
+
8
|
628
|
+
</Button>
|
629
|
+
</td>
|
630
|
+
<td
|
631
|
+
className="data-col active"
|
632
|
+
onClick={[Function]}
|
633
|
+
>
|
634
|
+
<Button
|
635
|
+
active={false}
|
636
|
+
block={false}
|
637
|
+
bsClass="btn"
|
638
|
+
bsStyle="link"
|
639
|
+
disabled={false}
|
640
|
+
>
|
641
|
+
2
|
642
|
+
</Button>
|
643
|
+
</td>
|
644
|
+
</tr>
|
645
|
+
<tr
|
646
|
+
key="success"
|
647
|
+
>
|
648
|
+
<td>
|
649
|
+
<Icon
|
650
|
+
name="ok"
|
651
|
+
type="pf"
|
652
|
+
/>
|
653
|
+
Success
|
654
|
+
</td>
|
655
|
+
<td
|
656
|
+
className="data-col not-focused"
|
657
|
+
onClick={[Function]}
|
658
|
+
>
|
659
|
+
<Button
|
660
|
+
active={false}
|
661
|
+
block={false}
|
662
|
+
bsClass="btn"
|
663
|
+
bsStyle="link"
|
664
|
+
disabled={false}
|
665
|
+
>
|
666
|
+
7
|
667
|
+
</Button>
|
668
|
+
</td>
|
669
|
+
<td
|
670
|
+
className="data-col not-focused"
|
671
|
+
onClick={[Function]}
|
672
|
+
>
|
673
|
+
<Button
|
674
|
+
active={false}
|
675
|
+
block={false}
|
676
|
+
bsClass="btn"
|
677
|
+
bsStyle="link"
|
678
|
+
disabled={false}
|
679
|
+
>
|
680
|
+
3
|
681
|
+
</Button>
|
682
|
+
</td>
|
683
|
+
</tr>
|
684
|
+
</tbody>
|
685
|
+
</table>
|
686
|
+
`;
|
687
|
+
|
688
|
+
exports[`StoppedTable render warning-total selected 1`] = `
|
689
|
+
<table
|
690
|
+
className="table table-bordered table-striped stopped-table"
|
691
|
+
>
|
692
|
+
<thead>
|
693
|
+
<tr>
|
694
|
+
<th />
|
695
|
+
<th>
|
696
|
+
Total
|
697
|
+
</th>
|
698
|
+
<th>
|
699
|
+
week
|
700
|
+
</th>
|
701
|
+
</tr>
|
702
|
+
</thead>
|
703
|
+
<tbody>
|
704
|
+
<tr
|
705
|
+
key="error"
|
706
|
+
>
|
707
|
+
<td>
|
708
|
+
<Icon
|
709
|
+
name="error-circle-o"
|
710
|
+
type="pf"
|
711
|
+
/>
|
712
|
+
Error
|
713
|
+
</td>
|
714
|
+
<td
|
715
|
+
className="data-col not-focused"
|
716
|
+
onClick={[Function]}
|
717
|
+
>
|
718
|
+
<Button
|
719
|
+
active={false}
|
720
|
+
block={false}
|
721
|
+
bsClass="btn"
|
722
|
+
bsStyle="link"
|
723
|
+
disabled={false}
|
724
|
+
>
|
725
|
+
9
|
726
|
+
</Button>
|
727
|
+
</td>
|
728
|
+
<td
|
729
|
+
className="data-col not-focused"
|
730
|
+
onClick={[Function]}
|
731
|
+
>
|
732
|
+
<Button
|
733
|
+
active={false}
|
734
|
+
block={false}
|
735
|
+
bsClass="btn"
|
736
|
+
bsStyle="link"
|
737
|
+
disabled={false}
|
738
|
+
>
|
739
|
+
1
|
740
|
+
</Button>
|
741
|
+
</td>
|
742
|
+
</tr>
|
743
|
+
<tr
|
744
|
+
key="warning"
|
745
|
+
>
|
746
|
+
<td>
|
747
|
+
<Icon
|
748
|
+
name="warning-triangle-o"
|
749
|
+
type="pf"
|
750
|
+
/>
|
751
|
+
Warning
|
752
|
+
</td>
|
753
|
+
<td
|
754
|
+
className="data-col active"
|
755
|
+
onClick={[Function]}
|
756
|
+
>
|
757
|
+
<Button
|
758
|
+
active={false}
|
759
|
+
block={false}
|
760
|
+
bsClass="btn"
|
761
|
+
bsStyle="link"
|
762
|
+
disabled={false}
|
763
|
+
>
|
764
|
+
8
|
765
|
+
</Button>
|
766
|
+
</td>
|
767
|
+
<td
|
768
|
+
className="data-col not-focused"
|
769
|
+
onClick={[Function]}
|
770
|
+
>
|
771
|
+
<Button
|
772
|
+
active={false}
|
773
|
+
block={false}
|
774
|
+
bsClass="btn"
|
775
|
+
bsStyle="link"
|
776
|
+
disabled={false}
|
777
|
+
>
|
778
|
+
2
|
779
|
+
</Button>
|
780
|
+
</td>
|
781
|
+
</tr>
|
782
|
+
<tr
|
783
|
+
key="success"
|
784
|
+
>
|
785
|
+
<td>
|
786
|
+
<Icon
|
787
|
+
name="ok"
|
788
|
+
type="pf"
|
789
|
+
/>
|
790
|
+
Success
|
791
|
+
</td>
|
792
|
+
<td
|
793
|
+
className="data-col not-focused"
|
794
|
+
onClick={[Function]}
|
795
|
+
>
|
796
|
+
<Button
|
797
|
+
active={false}
|
798
|
+
block={false}
|
799
|
+
bsClass="btn"
|
800
|
+
bsStyle="link"
|
801
|
+
disabled={false}
|
802
|
+
>
|
803
|
+
7
|
804
|
+
</Button>
|
805
|
+
</td>
|
806
|
+
<td
|
807
|
+
className="data-col not-focused"
|
808
|
+
onClick={[Function]}
|
809
|
+
>
|
810
|
+
<Button
|
811
|
+
active={false}
|
812
|
+
block={false}
|
813
|
+
bsClass="btn"
|
814
|
+
bsStyle="link"
|
815
|
+
disabled={false}
|
816
|
+
>
|
817
|
+
3
|
818
|
+
</Button>
|
819
|
+
</td>
|
820
|
+
</tr>
|
821
|
+
</tbody>
|
822
|
+
</table>
|
823
|
+
`;
|
824
|
+
|
825
|
+
exports[`StoppedTable render with props 1`] = `
|
826
|
+
<table
|
827
|
+
className="table table-bordered table-striped stopped-table"
|
828
|
+
>
|
829
|
+
<thead>
|
830
|
+
<tr>
|
831
|
+
<th />
|
832
|
+
<th>
|
833
|
+
Total
|
834
|
+
</th>
|
835
|
+
<th>
|
836
|
+
week
|
837
|
+
</th>
|
838
|
+
</tr>
|
839
|
+
</thead>
|
840
|
+
<tbody>
|
841
|
+
<tr
|
842
|
+
key="error"
|
843
|
+
>
|
844
|
+
<td>
|
845
|
+
<Icon
|
846
|
+
name="error-circle-o"
|
847
|
+
type="pf"
|
848
|
+
/>
|
849
|
+
Error
|
850
|
+
</td>
|
851
|
+
<td
|
852
|
+
className="data-col"
|
853
|
+
onClick={[Function]}
|
854
|
+
>
|
855
|
+
<Button
|
856
|
+
active={false}
|
857
|
+
block={false}
|
858
|
+
bsClass="btn"
|
859
|
+
bsStyle="link"
|
860
|
+
disabled={false}
|
861
|
+
>
|
862
|
+
9
|
863
|
+
</Button>
|
864
|
+
</td>
|
865
|
+
<td
|
866
|
+
className="data-col"
|
867
|
+
onClick={[Function]}
|
868
|
+
>
|
869
|
+
<Button
|
870
|
+
active={false}
|
871
|
+
block={false}
|
872
|
+
bsClass="btn"
|
873
|
+
bsStyle="link"
|
874
|
+
disabled={false}
|
875
|
+
>
|
876
|
+
1
|
877
|
+
</Button>
|
878
|
+
</td>
|
879
|
+
</tr>
|
880
|
+
<tr
|
881
|
+
key="warning"
|
882
|
+
>
|
883
|
+
<td>
|
884
|
+
<Icon
|
885
|
+
name="warning-triangle-o"
|
886
|
+
type="pf"
|
887
|
+
/>
|
888
|
+
Warning
|
889
|
+
</td>
|
890
|
+
<td
|
891
|
+
className="data-col"
|
892
|
+
onClick={[Function]}
|
893
|
+
>
|
894
|
+
<Button
|
895
|
+
active={false}
|
896
|
+
block={false}
|
897
|
+
bsClass="btn"
|
898
|
+
bsStyle="link"
|
899
|
+
disabled={false}
|
900
|
+
>
|
901
|
+
8
|
902
|
+
</Button>
|
903
|
+
</td>
|
904
|
+
<td
|
905
|
+
className="data-col"
|
906
|
+
onClick={[Function]}
|
907
|
+
>
|
908
|
+
<Button
|
909
|
+
active={false}
|
910
|
+
block={false}
|
911
|
+
bsClass="btn"
|
912
|
+
bsStyle="link"
|
913
|
+
disabled={false}
|
914
|
+
>
|
915
|
+
2
|
916
|
+
</Button>
|
917
|
+
</td>
|
918
|
+
</tr>
|
919
|
+
<tr
|
920
|
+
key="success"
|
921
|
+
>
|
922
|
+
<td>
|
923
|
+
<Icon
|
924
|
+
name="ok"
|
925
|
+
type="pf"
|
926
|
+
/>
|
927
|
+
Success
|
928
|
+
</td>
|
929
|
+
<td
|
930
|
+
className="data-col"
|
931
|
+
onClick={[Function]}
|
932
|
+
>
|
933
|
+
<Button
|
934
|
+
active={false}
|
935
|
+
block={false}
|
936
|
+
bsClass="btn"
|
937
|
+
bsStyle="link"
|
938
|
+
disabled={false}
|
939
|
+
>
|
940
|
+
7
|
941
|
+
</Button>
|
942
|
+
</td>
|
943
|
+
<td
|
944
|
+
className="data-col"
|
945
|
+
onClick={[Function]}
|
946
|
+
>
|
947
|
+
<Button
|
948
|
+
active={false}
|
949
|
+
block={false}
|
950
|
+
bsClass="btn"
|
951
|
+
bsStyle="link"
|
952
|
+
disabled={false}
|
953
|
+
>
|
954
|
+
3
|
955
|
+
</Button>
|
956
|
+
</td>
|
957
|
+
</tr>
|
958
|
+
</tbody>
|
959
|
+
</table>
|
960
|
+
`;
|