Skip to content
Snippets Groups Projects
Commit 8b8fae94 authored by metourneau's avatar metourneau
Browse files

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

parent 9bff2d44
No related branches found
No related tags found
1 merge request!779REDMINE_ISSUE-20478 | Admin Django - Projets : enlever les champs "Délai avant..."
......@@ -357,7 +357,6 @@ export default {
name: 'Sélectionner une image ...',
size: 0,
},
errors_archive_feature: [],
errors: {
title: [],
access_level_pub_feature: [],
......@@ -394,8 +393,6 @@ export default {
creator: null,
access_level_pub_feature: { name: '', value: '' },
access_level_arch_feature: { name: '', value: '' },
archive_feature: 0,
delete_feature: 0,
map_max_zoom_level: 22,
nb_features: 0,
nb_published_features: 0,
......@@ -594,16 +591,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) {
Promise.all([
this.$store.dispatch('GET_USER_LEVEL_PROJECTS'), //* refresh projects user levels
......@@ -652,12 +639,6 @@ export default {
},
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) {
if ((key === 'title' && this.form[key]) || this.form[key].value) {
this.errors[key] = [];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment