<template>
  <v-app class="connectorsAdminSettings">
    <v-main class="application-body pa-5">
      <agenda-admin-embed-map-settings :settings="settings" />
      <agenda-admin-connector-settings :settings="settings" />
    </v-main>
  </v-app>
</template>

<script>
export default {
  data: () => ({
    settings: null,
  }),
  created() {
    this.refreshSettings()
      .finally(() => this.$root.$applicationLoaded());
  },
  methods: {
    refreshSettings() {
      return this.$settingsService.getUserSettings()
        .then(settings => this.settings = settings);
    },
  }
};
</script>
