DigitalConsumer.ISS/src/helpers/loading-modal-helper.js
2024-01-08 14:53:55 -05:00

20 lines
558 B
JavaScript

import { reactive } from 'vue';
// state encapsulated and managed by the composable
const globalNonpersistedState = reactive({
showLoadingModal: true,
showTextCarousel: false
});
const showIssLoadingModal = (newValue, showTextCarousel = false) => {
if (newValue !== undefined) {
globalNonpersistedState.showLoadingModal = newValue;
}
if (showTextCarousel !== undefined) {
globalNonpersistedState.showTextCarousel = showTextCarousel;
}
return { globalNonpersistedState };
};
export default showIssLoadingModal;