Fix edit & share namespace

This commit is contained in:
kolaente 2021-01-28 23:47:47 +01:00
parent d6d4432c80
commit e525105f02
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
2 changed files with 8 additions and 16 deletions

View File

@ -56,9 +56,7 @@
</create-edit>
</template>
<scripti>
import manageSharing from '@/components/sharing/userTeam'
<script>
import NamespaceService from '@/services/namespace'
import NamespaceModel from '@/models/namespace'
import Fancycheckbox from '@/components/input/fancycheckbox'
@ -81,9 +79,8 @@ export default {
CreateEdit,
ColorPicker,
Fancycheckbox,
manageSharing,
editor: () => ({
component: import(/* webpackChunkName: "editor" */ '../../components/input/editor'),
component: import(/* webpackChunkName: "editor" */ '@/components/input/editor'),
loading: LoadingComponent,
error: ErrorComponent,
timeout: 60000,
@ -93,7 +90,6 @@ export default {
this.namespace.id = this.$route.params.id
},
created() {
console.log('test')
this.namespaceService = new NamespaceService()
this.namespace = new NamespaceModel()
this.loadNamespace()
@ -119,7 +115,6 @@ export default {
// This will trigger the dynamic loading of components once we actually have all the data to pass to them
this.manageTeamsComponent = 'manageSharing'
this.manageUsersComponent = 'manageSharing'
console.log(r)
this.setTitle(`Edit ${r.title}`)
})
.catch(e => {

View File

@ -15,16 +15,12 @@
</create-edit>
</template>
<scripti>
import router from '../../router'
import manageSharing from '../../components/sharing/userTeam'
<script>
import manageSharing from '@/components/sharing/userTeam'
import CreateEdit from '@/components/misc/create-edit'
import NamespaceService from '../../services/namespace'
import NamespaceModel from '../../models/namespace'
import Fancycheckbox from '../../components/input/fancycheckbox'
import ColorPicker from '../../components/input/colorPicker'
import LoadingComponent from '../../components/misc/loading'
import ErrorComponent from '../../components/misc/error'
import NamespaceService from '@/services/namespace'
import NamespaceModel from '@/models/namespace'
export default {
name: 'namespace-settings-share',
@ -38,6 +34,7 @@ export default {
}
},
components: {
CreateEdit,
manageSharing,
},
beforeMount() {