This is an automated email from the git hooks/post-receive script. New commit to branch develop in repository pollen. See https://gitlab.nuiton.org/chorem/pollen.git commit 3965b6016a60e74eaef1d1121389dbe78df08a9d Author: jcouteau <couteau@codelutin.com> Date: Tue Dec 22 14:50:27 2020 +0100 :lipstick: :children_crossing: fixes #358: Liste de favoris - Supprimer l'import depuis l'écran des listes : Il faut d'abord créer une liste avant d'importer. --- .../web/tag/favoriteList/FavoriteLists.tag.html | 46 ---------------------- 1 file changed, 46 deletions(-) diff --git a/pollen-ui-riot-js/src/main/web/tag/favoriteList/FavoriteLists.tag.html b/pollen-ui-riot-js/src/main/web/tag/favoriteList/FavoriteLists.tag.html index ea94d92d..9f291cca 100644 --- a/pollen-ui-riot-js/src/main/web/tag/favoriteList/FavoriteLists.tag.html +++ b/pollen-ui-riot-js/src/main/web/tag/favoriteList/FavoriteLists.tag.html @@ -60,26 +60,9 @@ import "./FavoriteListEditModal.tag.html"; <a onclick={parent.addFavoriteList}> {parent._t.addFavoriteList} </a> - <a onclick={parent.openImportModal} > - {parent._t.importFavoriteLists} - </a> </ContextualMenu> </div> - <Modal ref="importModal" onsubmit={import} header={_t.importFavoriteLists} label={_t.import} type="success"> - <div class="o-form-element"> - <label class="c-label" for="importFile">{parent._t.import_file}</label> - <input type="file" - id="importFile" - ref="importFile" - required - class="c-field {c-field--error : parent.importErrors.error}"> - <div class="exemple"> - {parent._t.import_file_detail} - </div> - </div> - </Modal> - <FavoriteListEditModal ref="createFavoriteListModal"> </div> </div> @@ -150,41 +133,12 @@ import "./FavoriteListEditModal.tag.html"; this.update(); }; - this.openImportModal = () => { - this.refs.importModal.open().then(() => { - this.update(); - this.refresh(); - }, () => {}); - this.update(); - }; - - this.import = () => { - let importFile = this.refs.importModal.refs.importFile.files[0]; - return favoriteListService.importFavoriteLists(importFile).then(() => { - this.importErrors = {}; - this.refs.importModal.refs.importFile.value = ""; - this.update(); - }, errors => { - this.importErrors = errors; - this.bus.trigger("message", errors); - this.update(); - }); - }; - </script> <style> - - .exemple { - font-size: 0.9em; - padding-top: 0.5em; - width: 100%; - } - .elements { display: flex; flex-wrap: wrap; justify-content: flex-start; } - </style> </FavoriteLists> -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.