diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2019-09-26 20:12:24 +0200 |
---|---|---|
committer | npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com> | 2019-09-28 13:30:34 +0000 |
commit | 9e2bb5ef36b686ec619a069c65712f2d57c3a1cc (patch) | |
tree | b912fa5df8344f0bdad80530502a1a42b9b7704b /apps/oauth2/src/main.js | |
parent | 17cdcfe4a819708ac7f344d7aca2220a63c40310 (diff) | |
download | nextcloud-server-9e2bb5ef36b686ec619a069c65712f2d57c3a1cc.tar.gz nextcloud-server-9e2bb5ef36b686ec619a069c65712f2d57c3a1cc.zip |
Move oauth admin settings to initialstate
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
Diffstat (limited to 'apps/oauth2/src/main.js')
-rw-r--r-- | apps/oauth2/src/main.js | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/apps/oauth2/src/main.js b/apps/oauth2/src/main.js index b200347d901..c5714497f3d 100644 --- a/apps/oauth2/src/main.js +++ b/apps/oauth2/src/main.js @@ -22,13 +22,16 @@ import Vue from 'vue'; import App from './App.vue'; +import { loadState } from 'nextcloud-initial-state' Vue.prototype.t = t; Vue.prototype.OC = OC; -const app = new Vue({ - render: h => h(App) -}).$mount('#oauth2'); - -export { app }; +const clients = loadState('oauth2', 'clients'); +const View = Vue.extend(App) +new View({ + propsData: { + clients + } +}).$mount('#oauth2'); |