DriveProviderViews.js 517 B

123456789101112131415
  1. const { ProviderViews } = require('@uppy/provider-views')
  2. module.exports = class DriveProviderViews extends ProviderViews {
  3. toggleCheckbox (e, file) {
  4. e.stopPropagation()
  5. e.preventDefault()
  6. // Shared Drives aren't selectable; for all else, defer to the base ProviderView.
  7. // @todo isTeamDrive is left for backward compatibility. We should remove it in the next
  8. // major release.
  9. if (!file.custom.isTeamDrive && !file.custom.isSharedDrive) {
  10. super.toggleCheckbox(e, file)
  11. }
  12. }
  13. }