Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c2d0152d authored by Ronak's avatar Ronak
Browse files

loadstate in data

parent ac8accb6
Loading
Loading
Loading
Loading
Loading
+2 −10
Original line number Diff line number Diff line
@@ -114,8 +114,8 @@ export default {
			becomeBetaUserButtonLabel: t('ecloud-accounts', 'Become a beta user'),
			optOutBetaUserButtonLabel: t('ecloud-accounts', 'Opt out of beta features'),
			submitButtonLabel: t('ecloud-accounts', 'Submit'),
			isBetaUser: false,
			betaApps: [],
			isBetaUser: loadState(this.appName, 'is_beta_user'),
			betaApps: loadState(this.appName, 'beta_apps'),
			title: '',
			description: '',
			loading: true,
@@ -126,14 +126,6 @@ export default {
			return (this.description === '' || this.title === '')
		},
	},
	created() {
		try {
			this.isBetaUser = loadState(this.appName, 'is_beta_user')
			this.betaApps = loadState(this.appName, 'beta_apps')
		} catch (e) {
			console.error('Error fetching initial state', e)
		}
	},
	methods: {
		async becomeBetaUser() {
			try {