(studentsToRevoke)
| 515 | } |
| 516 | |
| 517 | showRevokeConfirm (studentsToRevoke) { |
| 518 | return new Promise(function (resolve) { |
| 519 | const notification = noty({ |
| 520 | text: studentsToRevoke.length + $.i18n.t('teacher.archive_revoke_confirm'), |
| 521 | type: 'info', |
| 522 | layout: 'top', |
| 523 | buttons: [ |
| 524 | { |
| 525 | addClass: 'btn btn-danger', |
| 526 | text: $.i18n.t('teacher.archive_without_revoking'), |
| 527 | onClick ($noty) { |
| 528 | $noty.close() |
| 529 | return resolve(false) |
| 530 | } |
| 531 | }, |
| 532 | { |
| 533 | addClass: 'btn btn-primary', |
| 534 | text: $.i18n.t('teacher.revoke_and_archive'), |
| 535 | onClick ($noty) { |
| 536 | $noty.close() |
| 537 | return resolve(true) |
| 538 | } |
| 539 | } |
| 540 | ] |
| 541 | }) |
| 542 | return notification.$buttons.addClass('style-flat') |
| 543 | }) |
| 544 | } |
| 545 | |
| 546 | static codeNinjaClassroomTypes () { |
| 547 | return [ |
no outgoing calls
no test coverage detected