[plotters][static][app] Fix handling of $http promise

The success/error handlers have been deprecated and removed.
This patch updates the code using them.
1 job for cleanup_plotters in 15 minutes and 16 seconds (queued for 6 seconds)
Status Job ID Name Coverage
  Build
passed #208873
docker-build
build_linux_36

00:15:16

66.0%