mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 13:54:23 +00:00
household member editor: fix show other household warning + wording
This commit is contained in:
parent
13faf6fe5a
commit
f2c724726a
@ -33,7 +33,7 @@ const fetchHouseholdSuggestionByAccompanyingPeriod = (personId) => {
|
|||||||
|
|
||||||
throw Error ({m: 'Error while fetching household suggestion', status: response.status});
|
throw Error ({m: 'Error while fetching household suggestion', status: response.status});
|
||||||
}).then(data => Promise.resolve(data.results))
|
}).then(data => Promise.resolve(data.results))
|
||||||
.catch(e => console.err(e));
|
.catch(e => console.error(e));
|
||||||
;
|
;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -23,7 +23,8 @@
|
|||||||
<p>{{ $t('household_members_editor.concerned.persons_with_household') }}</p>
|
<p>{{ $t('household_members_editor.concerned.persons_with_household') }}</p>
|
||||||
<ul v-for="c in concernedPersonsWithHouseholds" :key=c.person.id>
|
<ul v-for="c in concernedPersonsWithHouseholds" :key=c.person.id>
|
||||||
<li>
|
<li>
|
||||||
{{ $t('household_members_editor.concerned.person') }} {{c.person.text}} {{$t('household_members_editor.concerned.already_belongs_to_household') }}
|
{{ c.person.text }}
|
||||||
|
{{ $t('household_members_editor.concerned.already_belongs_to_household') }}
|
||||||
<a target="_blank" :href="this.makeHouseholdLink(c.person.current_household_id)">{{c.person.current_household_id}}</a>.
|
<a target="_blank" :href="this.makeHouseholdLink(c.person.current_household_id)">{{c.person.current_household_id}}</a>.
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
@ -78,9 +79,13 @@ export default {
|
|||||||
return this.$store.getters.persons.length === 0;
|
return this.$store.getters.persons.length === 0;
|
||||||
},
|
},
|
||||||
concernedPersonsWithHouseholds () {
|
concernedPersonsWithHouseholds () {
|
||||||
return this.$store.state.concerned.filter(c =>
|
if (this.$store.state.household) {
|
||||||
c.person.current_household_id !== null && c.person.current_household_id !== this.$store.state.household.id
|
return this.$store.state.concerned.filter(c =>
|
||||||
);
|
c.person.current_household_id !== null && c.person.current_household_id !== this.$store.state.household.id
|
||||||
|
)
|
||||||
|
} else {
|
||||||
|
return [];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
|
@ -46,9 +46,8 @@ const appMessages = {
|
|||||||
move_to: "Déplacer vers",
|
move_to: "Déplacer vers",
|
||||||
persons_leaving: "Usagers quittant leurs ménages",
|
persons_leaving: "Usagers quittant leurs ménages",
|
||||||
no_person_in_position: "Aucun usager ne sera ajouté à cette position",
|
no_person_in_position: "Aucun usager ne sera ajouté à cette position",
|
||||||
persons_with_household: "Attention, usagers avec ménages",
|
persons_with_household: "Les usagers suivants sont associés à ces ménages:",
|
||||||
person: "L'usager",
|
already_belongs_to_household: "est associé au ménage"
|
||||||
already_belongs_to_household: "appartient déjà au ménage"
|
|
||||||
},
|
},
|
||||||
positioning: {
|
positioning: {
|
||||||
persons_to_positionnate: 'Usagers à positionner',
|
persons_to_positionnate: 'Usagers à positionner',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user