Skip to content
Snippets Groups Projects
Commit b26f0736 authored by Camille Blanchon's avatar Camille Blanchon
Browse files

Merge branch 'redmine-issues/20478' into 'develop'

REDMINE_ISSUE-20478 | Admin Django - Projets : enlever les champs "Délai avant..."

See merge request !779
parents e25ee870 8b8fae94
No related branches found
No related tags found
1 merge request!779REDMINE_ISSUE-20478 | Admin Django - Projets : enlever les champs "Délai avant..."
...@@ -360,7 +360,6 @@ export default { ...@@ -360,7 +360,6 @@ export default {
name: 'Sélectionner une image ...', name: 'Sélectionner une image ...',
size: 0, size: 0,
}, },
errors_archive_feature: [],
errors: { errors: {
title: [], title: [],
access_level_pub_feature: [], access_level_pub_feature: [],
...@@ -397,8 +396,6 @@ export default { ...@@ -397,8 +396,6 @@ export default {
creator: null, creator: null,
access_level_pub_feature: { name: '', value: '' }, access_level_pub_feature: { name: '', value: '' },
access_level_arch_feature: { name: '', value: '' }, access_level_arch_feature: { name: '', value: '' },
archive_feature: 0,
delete_feature: 0,
map_max_zoom_level: 22, map_max_zoom_level: 22,
nb_features: 0, nb_features: 0,
nb_published_features: 0, nb_published_features: 0,
...@@ -604,16 +601,6 @@ export default { ...@@ -604,16 +601,6 @@ export default {
} }
}, },
checkEmpty() {
//* forbid empty fields
if (!this.form.archive_feature) {
this.form.archive_feature = 0;
}
if (!this.form.delete_feature) {
this.form.delete_feature = 0;
}
},
goBackNrefresh(slug) { goBackNrefresh(slug) {
Promise.all([ Promise.all([
this.$store.dispatch('GET_USER_LEVEL_PROJECTS'), //* refresh projects user levels this.$store.dispatch('GET_USER_LEVEL_PROJECTS'), //* refresh projects user levels
...@@ -662,12 +649,6 @@ export default { ...@@ -662,12 +649,6 @@ export default {
}, },
checkForm() { checkForm() {
if (this.form.archive_feature > this.form.delete_feature) {
this.errors_archive_feature.push(
"Le délais de suppression doit être supérieur au délais d'archivage."
);
return false;
}
for (const key in this.errors) { for (const key in this.errors) {
if ((key === 'title' && this.form[key]) || this.form[key].value) { if ((key === 'title' && this.form[key]) || this.form[key].value) {
this.errors[key] = []; this.errors[key] = [];
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment