Loading www/modules/raid.js +5 −2 Changes for www/modules/raid.js: 5 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -93,6 +93,8 @@ 'Was nach ihrem Ausfall geschrieben wurde, fehlt auf ihnen: danach das Dateisystem prüfen und eine Reparatur laufen lassen.', 'I know that data may be inconsistent.': 'Mir ist klar, dass Daten inkonsistent sein können.', 'Please confirm.': 'Bitte bestätigen.', '{0} is degraded: add a device first, it takes the missing place.': '{0} ist beeinträchtigt: zuerst ein Gerät hinzufügen, es übernimmt den fehlenden Platz.', }}); let root; Loading Loading @@ -459,8 +461,9 @@ if (running && a.level !== 'raid0' && a.level !== 'linear') { const spare = a.members.some(m => m.slot < 0 && !m.state.includes('faulty')); const can = spare || data.devices.length; out.push(h('button', {class: 'small', disabled: a.syncAction !== 'idle' || !can, title: can ? null : t('No device to replace with: add a spare or free a device.'), const why = a.degraded > 0 ? t('{0} is degraded: add a device first, it takes the missing place.', a.name) : !can ? t('No device to replace with: add a spare or free a device.') : null; out.push(h('button', {class: 'small', disabled: a.syncAction !== 'idle' || !!why, title: why, onclick: () => replaceDialog(a)}, t('Replace device'))); if (a.syncAction === 'check') out.push(h('button', {class: 'small', onclick: () => checkArray(a, true, false)}, t('Stop check'))); else if (a.syncAction === 'repair') out.push(h('button', {class: 'small', onclick: () => checkArray(a, true, true)}, t('Stop repair'))); Loading Loading
www/modules/raid.js +5 −2 Changes for www/modules/raid.js: 5 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -93,6 +93,8 @@ 'Was nach ihrem Ausfall geschrieben wurde, fehlt auf ihnen: danach das Dateisystem prüfen und eine Reparatur laufen lassen.', 'I know that data may be inconsistent.': 'Mir ist klar, dass Daten inkonsistent sein können.', 'Please confirm.': 'Bitte bestätigen.', '{0} is degraded: add a device first, it takes the missing place.': '{0} ist beeinträchtigt: zuerst ein Gerät hinzufügen, es übernimmt den fehlenden Platz.', }}); let root; Loading Loading @@ -459,8 +461,9 @@ if (running && a.level !== 'raid0' && a.level !== 'linear') { const spare = a.members.some(m => m.slot < 0 && !m.state.includes('faulty')); const can = spare || data.devices.length; out.push(h('button', {class: 'small', disabled: a.syncAction !== 'idle' || !can, title: can ? null : t('No device to replace with: add a spare or free a device.'), const why = a.degraded > 0 ? t('{0} is degraded: add a device first, it takes the missing place.', a.name) : !can ? t('No device to replace with: add a spare or free a device.') : null; out.push(h('button', {class: 'small', disabled: a.syncAction !== 'idle' || !!why, title: why, onclick: () => replaceDialog(a)}, t('Replace device'))); if (a.syncAction === 'check') out.push(h('button', {class: 'small', onclick: () => checkArray(a, true, false)}, t('Stop check'))); else if (a.syncAction === 'repair') out.push(h('button', {class: 'small', onclick: () => checkArray(a, true, true)}, t('Stop repair'))); Loading