[gnome-maps/wip/mlundblad/transit-service-discovery: 9/13] transitPlan: Add error for no provider



commit 51a87a7f973f16ef6243e5f708f929af319dd934
Author: Marcus Lundblad <ml update uu se>
Date:   Thu Aug 29 22:14:26 2019 +0200

    transitPlan: Add error for no provider
    
    Add an error message for when no provider
    found for a route.

 src/transitPlan.js | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/src/transitPlan.js b/src/transitPlan.js
index c8aa673..9d88150 100644
--- a/src/transitPlan.js
+++ b/src/transitPlan.js
@@ -167,6 +167,10 @@ var Plan = GObject.registerClass({
         this.emit('error', _("Route request failed."));
     }
 
+    noProvider() {
+        this.emit('error', _("No provider found for this route."));
+    }
+
     _createBBox() {
         let bbox = new Champlain.BoundingBox();
         this._itineraries.forEach(function(itinerary) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]