mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-03-15 14:10:34 -04:00
This is the first step. Only shows name and email so far (because we don't have more data). Was necessary to change the request type of the list request to POST because it is not supported by microweb to have GET requests.
35 lines
705 B
Vue
35 lines
705 B
Vue
<template>
|
|
<div>
|
|
<div class="uk-container uk-padding">
|
|
<h1>
|
|
Accounts
|
|
</h1>
|
|
<template v-if="isInitialized">
|
|
<accounts-list :accounts="accounts" />
|
|
</template>
|
|
<oc-loader v-else />
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import { mapGetters, mapActions } from 'vuex'
|
|
import AccountsList from './accounts/AccountsList.vue'
|
|
export default {
|
|
name: 'App',
|
|
components: { AccountsList },
|
|
computed: {
|
|
...mapGetters('Accounts', ['isInitialized', 'getAccountsSorted']),
|
|
accounts () {
|
|
return this.getAccountsSorted
|
|
}
|
|
},
|
|
methods: {
|
|
...mapActions('Accounts', ['initialize'])
|
|
},
|
|
created () {
|
|
this.initialize()
|
|
}
|
|
}
|
|
</script>
|