Skip to content

Commit b440f31

Browse files
author
Geethakrishna Puligundla
committed
feat: Added pause icon in frontend to show the status
1 parent a0345aa commit b440f31

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

dispatcher/frontend-ui/src/components/SchedulesList.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,10 @@
7676
<tr v-for="schedule in schedules" :key="schedule._id">
7777
<td>
7878
<router-link :to="{name: 'schedule-detail', params: {'schedule_name': schedule.name}}">
79-
{{ schedule.name }}
79+
<span style="display: flex; align-items: center">
80+
{{ schedule.name }}
81+
<font-awesome-icon v-if="!schedule.enabled" icon="pause" style="margin-left: 5px; color: orange"/>
82+
</span>
8083
</router-link>
8184
</td>
8285
<td>{{ schedule.category }}</td>

dispatcher/frontend-ui/src/main.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import { faSpinner, faUser, faUserCircle, faKey, faTimes, faTimesCircle,
2727
faCalendarAlt, faStopCircle, faTrashAlt, faPlug,
2828
faSkullCrossbones, faAsterisk, faCheck, faPlusCircle,
2929
faExclamationTriangle, faServer, faSortAmountUp,
30-
faExternalLinkAlt, faClock, faCompactDisc, faGlasses, faBug } from '@fortawesome/free-solid-svg-icons'
30+
faExternalLinkAlt, faClock, faCompactDisc, faGlasses, faBug, faPause, } from '@fortawesome/free-solid-svg-icons'
3131
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'
3232
library.add(faKey);
3333
library.add(faBug);
@@ -61,6 +61,7 @@ library.add(faExternalLinkAlt);
6161
library.add(faArrowCircleLeft);
6262
library.add(faSkullCrossbones);
6363
library.add(faExclamationTriangle);
64+
library.add(faPause);
6465
Vue.component('font-awesome-icon', FontAwesomeIcon);
6566

6667
// Multiselect for schedules filter

0 commit comments

Comments
 (0)