mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-27 17:45:52 -05:00
add content to confirmation step
This commit is contained in:
parent
d4253bdd2e
commit
4d438d0cd6
2 changed files with 9 additions and 2 deletions
|
@ -94,6 +94,8 @@
|
|||
"studio.transferOwnership.noLongerEdit": "You will no longer be able to edit the studio",
|
||||
"studio.transferOwnership.noLongerDelete": "You will no longer be able to delete the studio",
|
||||
"studio.transferOwnership.whichManager": "Which manager do you want to give ownership to?",
|
||||
"studio.transferOwnership.confirmWithPassword": "To confirm changing studio ownership, please enter your password.",
|
||||
"studio.transferOwnership.forgotPassword": "Forgot password?",
|
||||
|
||||
"studio.remove": "Remove",
|
||||
"studio.promote": "Promote",
|
||||
|
|
|
@ -43,10 +43,12 @@ const TransferOwnershipConfirmation = ({
|
|||
isCreator={true}
|
||||
/>
|
||||
</div>
|
||||
<h3>
|
||||
<FormattedMessage id="studio.transferOwnership.confirmWithPassword" />
|
||||
</h3>
|
||||
<Form
|
||||
onSubmit={formData => {
|
||||
console.log(formData.password);
|
||||
onTransferOwnership(newOwnerUsername, selectedId);
|
||||
onTransferOwnership(/* formData.password, */newOwnerUsername, selectedId);
|
||||
}}
|
||||
>
|
||||
<Input
|
||||
|
@ -55,6 +57,9 @@ const TransferOwnershipConfirmation = ({
|
|||
name="password"
|
||||
type="password"
|
||||
/>
|
||||
<a href="/accounts/password_reset/">
|
||||
<FormattedMessage id="studio.transferOwnership.forgotPassword" />
|
||||
</a>
|
||||
<div
|
||||
className="transfer-ownership-button-row"
|
||||
>
|
||||
|
|
Loading…
Reference in a new issue