Skip to content

Commit 6689a89

Browse files
committed
style(Favorite): remove constraint of min one tag to create a favorite
1 parent 13f4486 commit 6689a89

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

components/Gestion/FavoriteForm.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,8 @@
8181
8282
// Tags validation
8383
const tags: number[] = this.selectedTags.map((tag: SelectedTag) => tag.tag_id);
84-
const isTagsValid = tags.length !== 0;
8584
86-
if (isValid && isTagsValid) {
85+
if (isValid) {
8786
8887
const request: UpdateConfigurationRequest | CreateConfigurationRequest = {
8988
name: this.form.name,

components/Panel/Item/FilterPanel.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@
372372
this.$displayError("Vos favoris n'ont pas pu être chargé");
373373
}
374374
} else {
375-
this.$displayWarning('Vous devez ajouter au moins un tag afin de créer votre favori')
375+
this.$displayWarning('Un problème est survenu lors de la création du favori.')
376376
}
377377
}
378378

0 commit comments

Comments
 (0)