Both.
The button is there as long as you have less than X spells. I'll probably change that one day so that you can use it X times, but for the moment, this was the easiest way to make it.
And the reason you didn't get any the first time is probably because we have a lack of low-level spells.