mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2024-12-20 19:06:06 +01:00
5de6ee136a
This commit moves the Users settings page to use the new Settings Content component. Similar to the Libraries page, this one is already a component. I mimiced the behavior of the existing libraries component to get the same functionality needed here
27 lines
616 B
Vue
27 lines
616 B
Vue
<template>
|
|
<div>
|
|
<app-settings-content :headerText="$strings.HeaderUsers" showAddButton=true @clicked="setShowUserModal">
|
|
<tables-users-table />
|
|
</app-settings-content>
|
|
<modals-account-modal ref="accountModal" v-model="showAccountModal" :account="selectedAccount" />
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
selectedAccount: null,
|
|
showAccountModal: false,
|
|
}
|
|
},
|
|
computed: {},
|
|
methods: {
|
|
setShowUserModal(selectedAccount) {
|
|
this.selectedAccount = selectedAccount
|
|
this.showAccountModal = true
|
|
}
|
|
},
|
|
mounted() {}
|
|
}
|
|
</script> |