finish up FOSS version (mostly)

This commit is contained in:
2024-10-02 15:59:42 +02:00
parent a2f6757d84
commit 52d7fa7de7
3 changed files with 3 additions and 15 deletions

View File

@@ -9,8 +9,10 @@
import { defineStore } from 'pinia';
// FOSS-VERSION: To enable the UI to be used with the FOSS version, change "isUserAuth" to true, you will be "logged in"
export const useUserStore = defineStore( 'user', {
state: () => ( { 'isUserAuth': false, 'hasSubscribed': false, 'isUsingKeyboard': false, 'username': '', 'isFOSSVersion': false } ),
state: () => ( { 'isUserAuth': true, 'hasSubscribed': false, 'isUsingKeyboard': false, 'username': '', 'isFOSSVersion': false } ),
getters: {
getUserAuthenticated: ( state ) => state.isUserAuth,
getSubscriptionStatus: ( state ) => state.hasSubscribed,