chore(plugin:pinDialog): fix promise to angularnes