Gaëtan Renaudeau
6 years ago
No known key found for this signature in database
GPG Key ID: 7B66B85F042E5451
4 changed files with
12 additions and
11 deletions
src/components/SettingsPage/sections/Help.js
src/components/modals/UpdateFirmware/Installing.js
src/components/modals/UpdateFirmware/steps/02-step-flash-mcu.js
static/i18n/en/app.json
@ -73,10 +73,7 @@ class SectionHelp extends PureComponent<Props> {
>
>
< ResetButton / >
< ResetButton / >
< / R o w >
< / R o w >
< Row
< Row title = { t ( 'settings.repairDevice.title' ) } desc = { t ( 'settings.repairDevice.desc' ) } >
title = { t ( 'settings.repairDevice.title' ) }
desc = { t ( 'settings.repairDevice.desc' ) }
>
< RepairDeviceButton / >
< RepairDeviceButton / >
< / R o w >
< / R o w >
< / B o d y >
< / B o d y >
@ -11,9 +11,10 @@ import type { T } from 'types/common'
type Props = {
type Props = {
t : T ,
t : T ,
progress : number ,
progress : number ,
installing : string ,
}
}
function Installing ( { t , progress } : Props ) {
function Installing ( { t , progress , installing } : Props ) {
return (
return (
< Fragment >
< Fragment >
< Box mx = { 7 } align = "center" >
< Box mx = { 7 } align = "center" >
@ -21,7 +22,7 @@ function Installing({ t, progress }: Props) {
< / B o x >
< / B o x >
< Box mx = { 7 } mt = { 4 } mb = { 2 } >
< Box mx = { 7 } mt = { 4 } mb = { 2 } >
< Text ff = "Museo Sans|Regular" align = "center" color = "dark" fontSize = { 6 } >
< Text ff = "Museo Sans|Regular" align = "center" color = "dark" fontSize = { 6 } >
{ t ( 'manager.modal.installing' ) }
{ t ( ` manager.modal.steps. ${ installing } ` ) }
< / T e x t >
< / T e x t >
< / B o x >
< / B o x >
< Box mx = { 7 } mt = { 4 } mb = { 7 } >
< Box mx = { 7 } mt = { 4 } mb = { 7 } >
@ -43,13 +43,13 @@ const Separator = styled(Box).attrs({
type Props = StepProps
type Props = StepProps
type State = {
type State = {
installing : boolean ,
installing : ? string ,
progress : number ,
progress : number ,
}
}
class StepFlashMcu extends PureComponent < Props , State > {
class StepFlashMcu extends PureComponent < Props , State > {
state = {
state = {
installing : false ,
installing : null ,
progress : 0 ,
progress : 0 ,
}
}
@ -92,7 +92,7 @@ class StepFlashMcu extends PureComponent<Props, State> {
const { t } = this . props
const { t } = this . props
return installing ? (
return installing ? (
< Installing progress = { progress } / >
< Installing installing = { installing } progress = { progress } / >
) : (
) : (
< Fragment >
< Fragment >
< Box mx = { 7 } >
< Box mx = { 7 } >
@ -258,9 +258,12 @@
} ,
} ,
"modal" : {
"modal" : {
"steps" : {
"steps" : {
"updateMCU" : "MCU update"
"updateMCU" : "MCU update" ,
"osu" : "Installing OSU..." ,
"flash-mcu" : "MCU updating..." ,
"flash-bootloader" : "Bootloader updating..." ,
"firmware" : "Firmware updating..."
} ,
} ,
"installing" : "Firmware updating..." ,
"confirmIdentifier" : "Verify the identifier" ,
"confirmIdentifier" : "Verify the identifier" ,
"confirmIdentifierText" : "Verify that the identifier on your device is the same as the identifier below. Press the right button and enter your PIN code to confirm" ,
"confirmIdentifierText" : "Verify that the identifier on your device is the same as the identifier below. Press the right button and enter your PIN code to confirm" ,
"identifier" : "Identifier" ,
"identifier" : "Identifier" ,