aboutsummaryrefslogtreecommitdiff
path: root/src/components/user_settings/mfa_backup_codes.js
blob: f0a984ecd88e1b7a2db28574f1ef523f3330027a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
export default {
  props: {
    backupCodes: {
      type: Object,
      default: () => ({
        inProgress: false,
        codes: []
      })
    }
  },
  data: () => ({}),
  computed: {
    inProgress () { return this.backupCodes.inProgress },
    ready () { return this.backupCodes.codes.length > 0 },
    displayTitle () { return this.inProgress || this.ready }
  }
}