@@ -15,7 +15,8 @@ import ConfirmDialog from "../ConfirmDialog.vue";
1515import routeLinks from " @/router/routeLinks" ;
1616import FailureGroupView from " @/resources/FailureGroupView" ;
1717import { TYPE } from " vue-toastification" ;
18- import FAIcon from " @/components/FAIcon.vue" ;
18+ import MetadataItem from " @/components/MetadataItem.vue" ;
19+ import ActionButton from " @/components/ActionButton.vue" ;
1920import { faArrowRotateRight , faEnvelope } from " @fortawesome/free-solid-svg-icons" ;
2021import { faClock } from " @fortawesome/free-regular-svg-icons" ;
2122
@@ -350,29 +351,25 @@ onMounted(async () => {
350351 <time-since :date-utc =" group.last" ></time-since >
351352 </span >
352353
353- <span class =" metadata" >
354- <FAIcon :icon =" faArrowRotateRight" class =" icon" />
355- Last retried:
356- <time-since :date-utc =" group.last_operation_completion_time" ></time-since >
357- </span >
354+ <MetadataItem :icon =" faArrowRotateRight" > Last retried: <time-since :date-utc =" group.last_operation_completion_time" ></time-since > </MetadataItem >
358355 </p >
359356 </div >
360357 </div >
361358
362359 <div class =" row" v-if =" !isBeingRestored(group.workflow_state.status)" >
363360 <div class =" col-sm-12 no-side-padding" >
364- <button
365- type =" button"
366- class =" btn btn-link btn-sm"
361+ <ActionButton
362+ variant =" link"
363+ size =" sm"
364+ :icon =" faArrowRotateRight"
367365 :disabled =" group.count === 0 || isBeingRestored(group.workflow_state.status)"
368366 @mouseenter =" group.hover3 = true"
369367 @mouseleave =" group.hover3 = false"
370368 v-if =" archiveGroups.length > 0"
371369 @click.stop =" showRestoreGroupDialog(group)"
372370 >
373- <FAIcon :icon =" faArrowRotateRight" class =" icon" />
374- <span >Restore group</span >
375- </button >
371+ Restore group
372+ </ActionButton >
376373 </div >
377374 </div >
378375
@@ -391,9 +388,9 @@ onMounted(async () => {
391388 </li >
392389 </ul >
393390 <div class =" op-metadata" >
394- <span class = " metadata " >< FAIcon :icon =" faClock" class = " icon " / > Restore request started:<time-since :date-utc =" group.operation_start_time" ></time-since ></ span >
395- <span class = " metadata " v-if =" group.workflow_state.status === 'restorecompleted'" >< FAIcon :icon =" faEnvelope" class = " icon " / > Messages restored: {{ group.count }}</ span >
396- <span class = " metadata " v-if =" group.workflow_state.status !== 'restorecompleted'" >< FAIcon :icon =" faEnvelope" class = " icon " / > Messages being restored: {{ group.count }}</ span >
391+ <MetadataItem :icon =" faClock" > Restore request started: <time-since :date-utc =" group.operation_start_time" ></time-since > </ MetadataItem >
392+ <MetadataItem v-if =" group.workflow_state.status === 'restorecompleted'" :icon =" faEnvelope" > Messages restored: {{ group.count }} </ MetadataItem >
393+ <MetadataItem v-if =" group.workflow_state.status !== 'restorecompleted'" :icon =" faEnvelope" > Messages being restored: {{ group.count }} </ MetadataItem >
397394 </div >
398395 </div >
399396 </div >
0 commit comments