authenticator-app.ts 1022 B

123456789101112131415161718192021222324252627
  1. // Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. import type { TwoFactorConfigurationPlugin } from '#shared/entities/two-factor/types.ts'
  3. import { EnumTwoFactorAuthenticationMethod } from '#shared/graphql/types.ts'
  4. import TwoFactorConfigurationAuthenticatorApp from '#desktop/components/TwoFactor/TwoFactorConfiguration/TwoFactorConfigurationAuthenticatorApp.vue'
  5. export default {
  6. name: EnumTwoFactorAuthenticationMethod.AuthenticatorApp,
  7. editable: true,
  8. component: TwoFactorConfigurationAuthenticatorApp,
  9. actionButtonA11yLabel: __('Action menu button for authenticator app'),
  10. getActionA11yLabel(type) {
  11. switch (type) {
  12. case 'setup':
  13. return __('Set up authenticator app')
  14. case 'default':
  15. return __('Set authenticator app as default')
  16. case 'edit':
  17. return __('Edit authenticator app')
  18. case 'remove':
  19. return __('Remove authenticator app')
  20. default:
  21. return ''
  22. }
  23. },
  24. } satisfies TwoFactorConfigurationPlugin