From c2e882134526816e224bb408e42f4953f385c917 Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Thu, 3 Oct 2019 17:08:39 +0200 Subject: Use the external initial state implementation Signed-off-by: Christoph Wurst --- apps/twofactor_backupcodes/src/settings.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'apps/twofactor_backupcodes/src') diff --git a/apps/twofactor_backupcodes/src/settings.js b/apps/twofactor_backupcodes/src/settings.js index 89a56ee2e5a..32eb37fa91a 100644 --- a/apps/twofactor_backupcodes/src/settings.js +++ b/apps/twofactor_backupcodes/src/settings.js @@ -1,13 +1,13 @@ +import { loadState } from '@nextcloud/initial-state' import Vue from 'vue' + import PersonalSettings from './views/PersonalSettings' import store from './store' Vue.prototype.t = t -const initialState = OCP.InitialState.loadState('twofactor_backupcodes', 'state') -store.replaceState( - initialState -) +const initialState = loadState('twofactor_backupcodes', 'state') +store.replaceState(initialState) const View = Vue.extend(PersonalSettings) new View({ -- cgit v1.2.3