@saooti/octopus-sdk 31.0.41 → 31.0.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
package/package.json
CHANGED
|
@@ -83,12 +83,16 @@
|
|
|
83
83
|
import { state } from '../../store/paramStore';
|
|
84
84
|
|
|
85
85
|
import { defineComponent } from 'vue'
|
|
86
|
+
import { Organisation } from '@/store/class/general/organisation';
|
|
86
87
|
export default defineComponent({
|
|
87
88
|
name: 'HomeDropdown',
|
|
88
89
|
props: {
|
|
89
90
|
isEducation: { default: false, type: Boolean},
|
|
90
91
|
},
|
|
91
92
|
computed: {
|
|
93
|
+
organisationsAvailable(): Array<Organisation>{
|
|
94
|
+
return this.$store.state.profile.organisations?? [];
|
|
95
|
+
},
|
|
92
96
|
helpLinks(){
|
|
93
97
|
return [
|
|
94
98
|
{title:this.$t('Help'), href:'https://help.octopus.saooti.com/Aide/'},
|
|
@@ -99,7 +103,7 @@ export default defineComponent({
|
|
|
99
103
|
{title:this.$t('Upload'),class:"btn btn-primary w-100", path:'/main/priv/upload', condition: (state.generalParameters.isContribution as boolean)},
|
|
100
104
|
{title:this.$t('My space'),class:"show-phone dropdown-item", path:'/main/priv/backoffice', condition: true},
|
|
101
105
|
{title:this.$t('Edit my profile'),class:"dropdown-item", path:'/main/priv/edit/profile', condition: true},
|
|
102
|
-
{title:this.$t('Edit my organisation'),class:"dropdown-item", path:'/main/priv/edit/organisation', condition: (state.generalParameters.isOrganisation as boolean)}];
|
|
106
|
+
{title:this.$t('Edit my organisation'),class:"dropdown-item", path:'/main/priv/edit/organisation', condition: (state.generalParameters.isOrganisation as boolean) || 1<this.organisationsAvailable.length}];
|
|
103
107
|
},
|
|
104
108
|
|
|
105
109
|
isPodcastmaker(): boolean {
|