Skip to content

Commit

Permalink
Merge pull request #134 from ymaheshwari1/fix/check-oms-connection-in…
Browse files Browse the repository at this point in the history
…-runNow

Improved: code to add support for checking oms connection when using runNow feature
  • Loading branch information
ymaheshwari1 authored Mar 22, 2024
2 parents e9bdc04 + f9f8dc6 commit 50363ee
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/views/BrokeringRoute.vue
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,15 @@ function timeTillJob(time: any) {
}
async function runNow() {
// If this is the first time then we are fetching the omsConnection status, as if the value of isOmsConnectionExist value is a boolean it means we have previously fetched the connection status
if(typeof isOmsConnectionExist.value !== "boolean") {
await checkOmsConnectionStatus()
}
if(!isOmsConnectionExist.value) {
return;
}
const scheduleAlert = await alertController
.create({
header: translate("Run now"),
Expand Down

0 comments on commit 50363ee

Please sign in to comment.