From 843ff17d395c2514a1ef1370722f951c4dd5ef6c Mon Sep 17 00:00:00 2001 From: Austin Couturier Date: Mon, 1 Jul 2024 20:42:16 -0600 Subject: [PATCH] Refactor Set Import Message --- src/js/moveset_import.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/js/moveset_import.js b/src/js/moveset_import.js index fe5835c2e..f66bdbce7 100644 --- a/src/js/moveset_import.js +++ b/src/js/moveset_import.js @@ -303,8 +303,11 @@ function addSets(pokes, name) { } } } - if (addedpokes > 0) { - alert("Successfully imported " + addedpokes + " set(s)"); + if (addedpokes == 1) { + alert("Successfully imported 1 set"); + $(allPokemon("#importedSetsOptions")).css("display", "inline"); + } else if (addedpokes > 1) { + alert("Successfully imported " + addedpokes + " sets"); $(allPokemon("#importedSetsOptions")).css("display", "inline"); } else { alert("No sets imported, please check your syntax and try again");