|
304 | 304 | :options="trueOrFalseOptions" |
305 | 305 | customClass="is-justify-content-flex-start" |
306 | 306 | customRadioClass="mr-5" |
307 | | - :customRadioDisable="!AlertService.Emailer.Enabled" |
| 307 | + :customRadioDisable="AlertService.Emailer.Enabled === false" |
308 | 308 | /> |
309 | 309 | </div> |
310 | 310 | </div> |
|
324 | 324 | allow-new |
325 | 325 | ellipsis |
326 | 326 | :before-adding="beforeAdding" |
327 | | - :disabled="!AlertService.Emailer.Enabled" |
| 327 | + :disabled="AlertService.Emailer.Enabled === false" |
328 | 328 | > |
329 | 329 | </b-taginput> |
330 | 330 | </div> |
|
343 | 343 | :options="trueOrFalseOptions" |
344 | 344 | customClass="is-justify-content-flex-start" |
345 | 345 | customRadioClass="mr-5" |
346 | | - :customRadioDisable="!AlertService.Emailer.Enabled" |
| 346 | + :customRadioDisable="AlertService.Emailer.Enabled === false" |
347 | 347 | /> |
348 | 348 | </div> |
349 | 349 | </div> |
|
363 | 363 | allow-new |
364 | 364 | ellipsis |
365 | 365 | :before-adding="beforeAdding" |
366 | | - :disabled="!AlertService.Emailer.Enabled" |
| 366 | + :disabled="AlertService.Emailer.Enabled === false" |
367 | 367 | > |
368 | 368 | </b-taginput> |
369 | 369 | </div> |
|
382 | 382 | :options="trueOrFalseOptions" |
383 | 383 | customClass="is-justify-content-flex-start" |
384 | 384 | customRadioClass="mr-5" |
385 | | - :customRadioDisable="!AlertService.Emailer.Enabled" |
| 385 | + :customRadioDisable="AlertService.Emailer.Enabled === false" |
386 | 386 | /> |
387 | 387 | </div> |
388 | 388 | </div> |
|
402 | 402 | allow-new |
403 | 403 | ellipsis |
404 | 404 | :before-adding="beforeAdding" |
405 | | - :disabled="!AlertService.Emailer.Enabled" |
| 405 | + :disabled="AlertService.Emailer.Enabled === false" |
406 | 406 | > |
407 | 407 | </b-taginput> |
408 | 408 | </div> |
|
421 | 421 | :options="trueOrFalseOptions" |
422 | 422 | customClass="is-justify-content-flex-start" |
423 | 423 | customRadioClass="mr-5" |
424 | | - :customRadioDisable="!AlertService.Emailer.Enabled" |
| 424 | + :customRadioDisable="AlertService.Emailer.Enabled === false" |
425 | 425 | /> |
426 | 426 | </div> |
427 | 427 | </div> |
|
441 | 441 | allow-new |
442 | 442 | ellipsis |
443 | 443 | :before-adding="beforeAdding" |
444 | | - :disabled="!AlertService.Emailer.Enabled" |
| 444 | + :disabled="AlertService.Emailer.Enabled === false" |
445 | 445 | > |
446 | 446 | </b-taginput> |
447 | 447 | </div> |
|
463 | 463 | :options="trueOrFalseOptions" |
464 | 464 | customClass="is-justify-content-flex-start" |
465 | 465 | customRadioClass="mr-5" |
466 | | - :customRadioDisable="!AlertService.Emailer.Enabled" |
| 466 | + :customRadioDisable="AlertService.Emailer.Enabled === false" |
467 | 467 | /> |
468 | 468 | </div> |
469 | 469 | </div> |
|
485 | 485 | allow-new |
486 | 486 | ellipsis |
487 | 487 | :before-adding="beforeAdding" |
488 | | - :disabled="!AlertService.Emailer.Enabled" |
| 488 | + :disabled="AlertService.Emailer.Enabled === false" |
489 | 489 | > |
490 | 490 | </b-taginput> |
491 | 491 | </div> |
|
504 | 504 | :options="trueOrFalseOptions" |
505 | 505 | customClass="is-justify-content-flex-start" |
506 | 506 | customRadioClass="mr-5" |
507 | | - :customRadioDisable="!AlertService.Emailer.Enabled" |
| 507 | + :customRadioDisable="AlertService.Emailer.Enabled === false" |
508 | 508 | /> |
509 | 509 | </div> |
510 | 510 | </div> |
|
524 | 524 | allow-new |
525 | 525 | ellipsis |
526 | 526 | :before-adding="beforeAdding" |
527 | | - :disabled="!AlertService.Emailer.Enabled" |
| 527 | + :disabled="AlertService.Emailer.Enabled === false" |
528 | 528 | > |
529 | 529 | </b-taginput> |
530 | 530 | </div> |
|
545 | 545 | :options="trueOrFalseOptions" |
546 | 546 | customClass="is-justify-content-flex-start" |
547 | 547 | customRadioClass="mr-5" |
548 | | - :customRadioDisable="!AlertService.Emailer.Enabled" |
| 548 | + :customRadioDisable="AlertService.Emailer.Enabled === false" |
549 | 549 | /> |
550 | 550 | </div> |
551 | 551 | </div> |
|
567 | 567 | allow-new |
568 | 568 | ellipsis |
569 | 569 | :before-adding="beforeAdding" |
570 | | - :disabled="!AlertService.Emailer.Enabled" |
| 570 | + :disabled="AlertService.Emailer.Enabled === false" |
571 | 571 | > |
572 | 572 | </b-taginput> |
573 | 573 | </div> |
|
586 | 586 | :options="trueOrFalseOptions" |
587 | 587 | customClass="is-justify-content-flex-start" |
588 | 588 | customRadioClass="mr-5" |
589 | | - :customRadioDisable="!AlertService.Emailer.Enabled" |
| 589 | + :customRadioDisable="AlertService.Emailer.Enabled === false" |
590 | 590 | /> |
591 | 591 | </div> |
592 | 592 | </div> |
|
606 | 606 | allow-new |
607 | 607 | ellipsis |
608 | 608 | :before-adding="beforeAdding" |
609 | | - :disabled="!AlertService.Emailer.Enabled" |
| 609 | + :disabled="AlertService.Emailer.Enabled === false" |
610 | 610 | > |
611 | 611 | </b-taginput> |
612 | 612 | </div> |
|
625 | 625 | :options="trueOrFalseOptions" |
626 | 626 | customClass="is-justify-content-flex-start" |
627 | 627 | customRadioClass="mr-5" |
628 | | - :customRadioDisable="!AlertService.Emailer.Enabled" |
| 628 | + :customRadioDisable="AlertService.Emailer.Enabled === false" |
629 | 629 | /> |
630 | 630 | </div> |
631 | 631 | </div> |
|
645 | 645 | allow-new |
646 | 646 | ellipsis |
647 | 647 | :before-adding="beforeAdding" |
648 | | - :disabled="!AlertService.Emailer.Enabled" |
| 648 | + :disabled="AlertService.Emailer.Enabled === false" |
649 | 649 | > |
650 | 650 | </b-taginput> |
651 | 651 | </div> |
|
664 | 664 | :options="trueOrFalseOptions" |
665 | 665 | customClass="is-justify-content-flex-start" |
666 | 666 | customRadioClass="mr-5" |
667 | | - :customRadioDisable="!AlertService.Emailer.Enabled" |
| 667 | + :customRadioDisable="AlertService.Emailer.Enabled === false" |
668 | 668 | /> |
669 | 669 | </div> |
670 | 670 | </div> |
|
684 | 684 | allow-new |
685 | 685 | ellipsis |
686 | 686 | :before-adding="beforeAdding" |
687 | | - :disabled="!AlertService.Emailer.Enabled" |
| 687 | + :disabled="AlertService.Emailer.Enabled === false" |
688 | 688 | > |
689 | 689 | </b-taginput> |
690 | 690 | </div> |
@@ -850,13 +850,26 @@ export default { |
850 | 850 | emailerEnabled() { |
851 | 851 | return this.AlertService.Emailer.Enabled |
852 | 852 | }, |
| 853 | + reportRunStartup() { |
| 854 | + return this.AlertService.ReportAlertJob.RunAtStartup |
| 855 | + }, |
853 | 856 | }, |
854 | 857 | watch: { |
| 858 | + reportRunStartup(value) { |
| 859 | + if (value) { |
| 860 | + this.AlertService.Emailer.Enabled = null |
| 861 | + } |
| 862 | + }, |
855 | 863 | emailerEnabled(value) { |
856 | 864 | if (value !== null) { |
857 | 865 | this.AlertService.ReportAlertJob.Crontab = null |
858 | 866 | this.AlertService.ReportAlertJob.RunAtStartup = false |
859 | 867 | } |
| 868 | +
|
| 869 | + if (value === null) { |
| 870 | + this.AlertService.ReportAlertJob.Crontab = '@daily' |
| 871 | + this.AlertService.ReportAlertJob.RunAtStartup = true |
| 872 | + } |
860 | 873 | }, |
861 | 874 | }, |
862 | 875 | } |
|
0 commit comments