A prerequisite for this to work is that you add the template to the command palette. Go to Templater settings → Template hotkeys → Configure runImport as a hotkey. Now, it can be triggered directly from the command palette, and the button should work.