prettier'd

This commit is contained in:
Bill Richardson 2023-05-10 11:07:49 -04:00
parent 0307ab1c0a
commit 78ec13b7fe
2 changed files with 20 additions and 23 deletions

View file

@ -2,12 +2,12 @@ import { storeActions } from "@/constants/store-actions";
import baseMixin from "@/mixins/base-mixin.js";
export async function getAlertReasons(ctu) {
const alertReasons = await baseMixin.methods.dispatchStoreAction(
storeActions.GET_ALERT_REASONS_BY_CTU,
{
ctu: ctu,
}
)
const alertReasons = await baseMixin.methods.dispatchStoreAction(
storeActions.GET_ALERT_REASONS_BY_CTU,
{
ctu: ctu,
}
);
return Promise.resolve(alertReasons);
}
return Promise.resolve(alertReasons);
}

View file

@ -57,9 +57,7 @@ import datePicker from "@/digital-components/date-picker/date-picker";
import { fetchCmsContentForPage } from "@/helpers/cms-content-helper";
import { settleAllPromises } from "@/helpers/layout-helper";
import { navigateToHeritageFunnel } from "@/helpers/heritage-integration/navigation-helper";
import {
getAlertReasons,
} from "@/layouts/schedule/helpers/schedule-helper";
import { getAlertReasons } from "@/layouts/schedule/helpers/schedule-helper";
import {
doesCopyContainRouterLink,
splitCopyOnCMSPlaceHolder,
@ -111,7 +109,7 @@ export default {
];
const resultMap = await settleAllPromises(promiseResultMap);
// Call the "next" function to complete the transition to this page.
next((vm) => {
vm.setCmsContent(resultMap.cmsContent);
@ -145,7 +143,7 @@ export default {
}
},
cmsHeadlineTextFound(widgetName) {
return this.getCmsContent(widgetName, "HeadlineText") !== ""
return this.getCmsContent(widgetName, "HeadlineText") !== "";
},
convertReasonsToCmsAlerts(data) {
this.weatherAlerts = data.reduce((newObj, alert) => {
@ -158,14 +156,14 @@ export default {
},
async getWeatherAlertReasons(ctu) {
await getAlertReasons(ctu)
.then((response) => {
if (response.data) {
this.convertReasonsToCmsAlerts(response.data);
}
})
.catch(() => {
console.log("error fetching alert reasons..");
});
.then((response) => {
if (response.data) {
this.convertReasonsToCmsAlerts(response.data);
}
})
.catch(() => {
console.log("error fetching alert reasons..");
});
},
getAvailableDates(startDate, endDate) {
return this.mockSelectableDatesData;
@ -189,8 +187,7 @@ export default {
loadingModal,
datePicker,
},
mounted() {
},
mounted() {},
};
</script>