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



commit 1d8b2fb0df866b4821d847159b71378924b826f8
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 1a1caaf..5e76825 100644
--- a/src/transitPlan.js
+++ b/src/transitPlan.js
@@ -169,6 +169,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]