Skip to content

Commit 843ff17

Browse files
committed
Refactor Set Import Message
1 parent 8786054 commit 843ff17

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/js/moveset_import.js

+5-2
Original file line numberDiff line numberDiff line change
@@ -303,8 +303,11 @@ function addSets(pokes, name) {
303303
}
304304
}
305305
}
306-
if (addedpokes > 0) {
307-
alert("Successfully imported " + addedpokes + " set(s)");
306+
if (addedpokes == 1) {
307+
alert("Successfully imported 1 set");
308+
$(allPokemon("#importedSetsOptions")).css("display", "inline");
309+
} else if (addedpokes > 1) {
310+
alert("Successfully imported " + addedpokes + " sets");
308311
$(allPokemon("#importedSetsOptions")).css("display", "inline");
309312
} else {
310313
alert("No sets imported, please check your syntax and try again");

0 commit comments

Comments
 (0)