[gnome-maps/wip/osm-edit: 14/16] osmEdit: Show spinner when uploading to OSM
- From: Marcus Lundblad <mlundblad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps/wip/osm-edit: 14/16] osmEdit: Show spinner when uploading to OSM
- Date: Mon, 7 Dec 2015 21:47:29 +0000 (UTC)
commit 1683671c387c5d535a05c07eb90b4d72cffa8b9c
Author: Marcus Lundblad <ml update uu se>
Date: Sun Dec 6 22:41:27 2015 +0100
osmEdit: Show spinner when uploading to OSM
Show the “working spinner” when uploading.
Also disable the navigational buttons, as there is no way to go back.
https://bugzilla.gnome.org/show_bug.cgi?id=726628
src/osmEditDialog.js | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/osmEditDialog.js b/src/osmEditDialog.js
index bad279a..4e5a70f 100644
--- a/src/osmEditDialog.js
+++ b/src/osmEditDialog.js
@@ -126,6 +126,10 @@ const OSMEditDialog = new Lang.Class({
// switch to the upload view
this._switchToUpload();
} else {
+ // turn on spinner
+ this._stack.visible_child_name = 'loading';
+ this._nextButton.sensitive = false;
+ this._backButton.sensitive = false;
// upload data to OSM
let comment = this._commentTextView.buffer.text;
Application.osmEdit.uploadObject(this._osmObject,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]