Files
ALVINN_f7/src/js/store.js
Justin Georgi 23a2772468 Move disclaimer to app (#68)
The pre app disclaimer makes more sense initialized by the app and not the home page.  This PR moves the popup to the app and adds basic store functionality to give global access to the state of the apps agreement.

Signed-off-by: Justin Georgi <justin.georgi@gmail.com>

Reviewed-on: Georgi_Lab/ALVINN_f7#68
2024-01-10 09:32:41 -07:00

15 lines
255 B
JavaScript

import { reactive, computed } from 'vue';
const state = reactive({
disclaimerAgreement: false
})
const agree = () => {
state.disclaimerAgreement = true
}
export default () => ({
isAgreed: computed(() => state.disclaimerAgreement),
agree
})