Convert Users settings page to use new component

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
This commit is contained in:
jmt-gh 2022-11-25 21:10:05 -08:00
parent d5a19f2b42
commit 5de6ee136a
2 changed files with 15 additions and 11 deletions

View file

@ -1,16 +1,27 @@
<template>
<div>
<tables-users-table />
<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 {}
return {
selectedAccount: null,
showAccountModal: false,
}
},
computed: {},
methods: {},
methods: {
setShowUserModal(selectedAccount) {
this.selectedAccount = selectedAccount
this.showAccountModal = true
}
},
mounted() {}
}
</script>