feat(backup/overview): add tooltip to migrate action button (#3067)

Fixes #3042
This commit is contained in:
badrAZ
2018-06-14 11:06:28 +02:00
committed by Julien Fontanet
parent 79891235f3
commit dd3b97cae2
2 changed files with 9 additions and 7 deletions

View File

@@ -353,6 +353,7 @@ const messages = {
jobUserNotFound: "This job's creator no longer exists",
backupUserNotFound: "This backup's creator no longer exists",
redirectToMatchingVms: 'Click here to see the matching VMs',
migrateToBackupNg: 'Migrate to backup NG',
noMatchingVms: 'There are no matching VMs!',
allMatchingVms: '{icon} See the matching VMs ({nMatchingVms, number})',
backupOwner: 'Backup owner',

View File

@@ -126,10 +126,11 @@ const JOB_COLUMNS = [
icon='run-schedule'
/>
<ActionRowButton
icon='migrate-job'
btnStyle='danger'
handler={migrateBackupSchedule}
handlerParam={schedule.jobId}
icon='migrate-job'
tooltip={_('migrateToBackupNg')}
/>
<ActionRowButton
btnStyle='danger'
@@ -164,12 +165,12 @@ export default class Overview extends Component {
jobs === undefined || schedules === undefined
? []
: orderBy(
filter(schedules, schedule => {
const job = jobs[schedule.jobId]
return job && jobKeyToLabel[job.key]
}),
'id'
)
filter(schedules, schedule => {
const job = jobs[schedule.jobId]
return job && jobKeyToLabel[job.key]
}),
'id'
)
)
_redirectToMatchingVms = pattern => {