-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
62 additions
and
28 deletions.
There are no files selected for viewing
12 changes: 10 additions & 2 deletions
12
...mponents/TwoFactorDisableConfirmModal .js → ...ponents/TwoFactorDisableConfirmModal .tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 14 additions & 3 deletions
17
js/src/forum/components/TwoFactorGrid.js → js/src/forum/components/TwoFactorGrid.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 11 additions & 2 deletions
13
js/src/forum/components/TwoFactorGridItem.js → ...rc/forum/components/TwoFactorGridItem.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import app from 'flarum/forum/app'; | ||
import Component, { ComponentAttrs } from 'flarum/common/Component'; | ||
import TwoFactorGrid from './TwoFactorGrid'; | ||
import type Mithril from 'mithril'; | ||
import User from 'flarum/common/models/User'; | ||
|
||
export interface TwoFactorSettingsAttrs extends ComponentAttrs { | ||
user: User; | ||
} | ||
|
||
export default class TwoFactorSettings extends Component<TwoFactorSettingsAttrs> { | ||
oninit(vnode: Mithril.Vnode<ComponentAttrs, this>) { | ||
super.oninit(vnode); | ||
|
||
// this.twoFactorEnabled = this.attrs.user.twoFactorEnabled(); | ||
// this.canDisableTwoFactor = this.attrs.user.canDisable2FA(); | ||
// this.loading = false; | ||
} | ||
|
||
view() { | ||
return ( | ||
<div> | ||
<TwoFactorGrid user={this.attrs.user} /> | ||
</div> | ||
); | ||
} | ||
} |
File renamed without changes.