2025-07-24 20:36:45 +02:00
|
|
|
<template>
|
2025-07-24 23:04:44 +02:00
|
|
|
<v-card flat>
|
2025-07-24 20:36:45 +02:00
|
|
|
<v-card-text>
|
|
|
|
|
<dougal-organisations
|
|
|
|
|
:self="user"
|
|
|
|
|
:organisations.sync="organisations_"
|
|
|
|
|
>
|
2025-07-24 23:04:44 +02:00
|
|
|
<template v-slot:actions>
|
|
|
|
|
<v-spacer></v-spacer>
|
|
|
|
|
<v-btn
|
|
|
|
|
color="secondary"
|
|
|
|
|
@click="back"
|
|
|
|
|
>Back</v-btn>
|
|
|
|
|
</template>
|
2025-07-24 20:36:45 +02:00
|
|
|
</dougal-organisations>
|
|
|
|
|
</v-card-text>
|
|
|
|
|
<v-card-actions>
|
|
|
|
|
</v-card-actions>
|
|
|
|
|
</v-card>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import { mapActions, mapGetters } from 'vuex'
|
|
|
|
|
import DougalOrganisations from '../organisations'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
name: "DougalProjectSettingsOrganisations",
|
|
|
|
|
|
|
|
|
|
components: {
|
|
|
|
|
DougalOrganisations
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
props: {
|
|
|
|
|
organisations: Object,
|
|
|
|
|
value: Object
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
data () {
|
|
|
|
|
return {
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
computed: {
|
|
|
|
|
|
|
|
|
|
organisations_: {
|
|
|
|
|
get () {
|
|
|
|
|
return this.organisations;
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
set (v) {
|
|
|
|
|
this.$emit("input", {
|
|
|
|
|
...this.value,
|
|
|
|
|
organisations: v.toJSON()
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
...mapGetters(['user', 'loading', 'serverEvent'])
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
methods: {
|
|
|
|
|
|
|
|
|
|
reset () {
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
save () {
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
back () {
|
|
|
|
|
this.$emit('close');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
mounted () {
|
|
|
|
|
this.reset();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
</script>
|