diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2019-10-03 17:08:39 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2019-10-12 13:21:50 +0200 |
commit | c2e882134526816e224bb408e42f4953f385c917 (patch) | |
tree | 1c28c5e3bdd08dafa3369225365a1fee7dcda88b /apps/settings/src | |
parent | 7f8ff16c76ae31b0bcb2f62cc58ed89e7f2fbb22 (diff) | |
download | nextcloud-server-c2e882134526816e224bb408e42f4953f385c917.tar.gz nextcloud-server-c2e882134526816e224bb408e42f4953f385c917.zip |
Use the external initial state implementation
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'apps/settings/src')
-rw-r--r-- | apps/settings/src/main-admin-security.js | 3 | ||||
-rw-r--r-- | apps/settings/src/main-personal-security.js | 5 |
2 files changed, 5 insertions, 3 deletions
diff --git a/apps/settings/src/main-admin-security.js b/apps/settings/src/main-admin-security.js index d775f6ac133..345d1b3407b 100644 --- a/apps/settings/src/main-admin-security.js +++ b/apps/settings/src/main-admin-security.js @@ -1,3 +1,4 @@ +import { loadState } from '@nextcloud/initial-state' import Vue from 'vue' import AdminTwoFactor from './components/AdminTwoFactor.vue' @@ -13,7 +14,7 @@ window.OC = window.OC || {} window.OC.Settings = window.OC.Settings || {} store.replaceState( - OCP.InitialState.loadState('settings', 'mandatory2FAState') + loadState('settings', 'mandatory2FAState') ) const View = Vue.extend(AdminTwoFactor) diff --git a/apps/settings/src/main-personal-security.js b/apps/settings/src/main-personal-security.js index dd20d5d1031..85a88bf8f1d 100644 --- a/apps/settings/src/main-personal-security.js +++ b/apps/settings/src/main-personal-security.js @@ -19,6 +19,7 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ +import { loadState } from '@nextcloud/initial-state' import Vue from 'vue' import VueClipboard from 'vue-clipboard2' import VTooltip from 'v-tooltip' @@ -35,7 +36,7 @@ Vue.prototype.t = t const View = Vue.extend(AuthTokenSection) new View({ propsData: { - tokens: OCP.InitialState.loadState('settings', 'app_tokens'), - canCreateToken: OCP.InitialState.loadState('settings', 'can_create_app_token') + tokens: loadState('settings', 'app_tokens'), + canCreateToken: loadState('settings', 'can_create_app_token') } }).$mount('#security-authtokens') |