Skip to content

Commit de6a029

Browse files
committed
fix: fix visibility for sidebar and header
1 parent 2edf35d commit de6a029

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,11 +134,11 @@ export default class TwoFactorsAuthPlugin extends AdminForthPlugin {
134134
const customPages = this.adminforth.config.customization.customPages
135135
customPages.push({
136136
path:'/confirm2fa',
137-
component: { file: this.componentPath('TwoFactorsConfirmation.vue'), meta: { customLayout: true, suggestionPeriod: suggestionPeriod, isPasskeysEnabled: isPasskeysEnabled } }
137+
component: { file: this.componentPath('TwoFactorsConfirmation.vue'), meta: { sidebarAndHeader: "none", suggestionPeriod: suggestionPeriod, isPasskeysEnabled: isPasskeysEnabled } }
138138
})
139139
customPages.push({
140140
path:'/setup2fa',
141-
component: { file: this.componentPath('TwoFactorsSetup.vue'), meta: { title: 'Setup 2FA', customLayout: true, suggestionPeriod: suggestionPeriod, isPasskeysEnabled: isPasskeysEnabled } }
141+
component: { file: this.componentPath('TwoFactorsSetup.vue'), meta: { title: 'Setup 2FA', sidebarAndHeader: "none", suggestionPeriod: suggestionPeriod, isPasskeysEnabled: isPasskeysEnabled } }
142142
})
143143
const everyPageBottomInjections = this.adminforth.config.customization.globalInjections.everyPageBottom || []
144144
everyPageBottomInjections.push({ file: this.componentPath('TwoFAModal.vue'), meta: {} })

0 commit comments

Comments
 (0)