Skip to content

Commit a7683bc

Browse files
committed
Force variant to Regular when fetching a tfa icon - Fixes #495
1 parent ac66cf4 commit a7683bc

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

resources/js/views/twofaccounts/CreateUpdate.vue

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@
4242
icon: null
4343
}))
4444
const iconCollections = [
45-
{ text: 'selfh.st', value: 'selfh', asVariant: true },
46-
{ text: 'dashboardicons.com', value: 'dashboardicons', asVariant: true },
47-
{ text: '2fa.directory', value: 'tfa', asVariant: false },
45+
{ text: 'selfh.st', value: 'selfh', hasVariant: true },
46+
{ text: 'dashboardicons.com', value: 'dashboardicons', hasVariant: true },
47+
{ text: '2fa.directory', value: 'tfa', hasVariant: false },
4848
]
4949
const iconCollectionVariants = {
5050
selfh: [
@@ -56,6 +56,9 @@
5656
{ text: 'label.regular', value: 'regular' },
5757
{ text: 'label.light', value: 'light' },
5858
{ text: 'label.dark', value: 'dark' },
59+
],
60+
tfa: [
61+
{ text: 'label.regular', value: 'regular' },
5962
]
6063
}
6164
const accountParams = ref({

0 commit comments

Comments
 (0)