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
15 lines
255 B
JavaScript
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
|
|
})
|