qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kw...@apache.org
Subject svn commit: r1751884 - in /qpid/java/trunk/broker-plugins/management-http/src/main/java/resources: css/common.css js/qpid/management/query/QueryBrowserWidget.js
Date Fri, 08 Jul 2016 11:35:14 GMT
Author: kwall
Date: Fri Jul  8 11:35:13 2016
New Revision: 1751884

URL: http://svn.apache.org/viewvc?rev=1751884&view=rev
Log:
QPID-7248: [Java Broker] Query browser - add noDataMessage message

Modified:
    qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/css/common.css
    qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/query/QueryBrowserWidget.js

Modified: qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/css/common.css
URL: http://svn.apache.org/viewvc/qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/css/common.css?rev=1751884&r1=1751883&r2=1751884&view=diff
==============================================================================
--- qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/css/common.css
(original)
+++ qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/css/common.css
Fri Jul  8 11:35:13 2016
@@ -603,4 +603,12 @@ td.advancedSearchField, col.autoWidth {
     background: url('../dojo/dgrid/css/images/ui-icons_ffffff_256x240.png')  no-repeat;
     background-position: -80px -128px;
     background-color: #D3D3D3;
+}
+
+.dgrid-no-data,
+.dgrid-loading {
+    color: #aaa;
+    font-size: 3em;
+    padding: 3em;
+    text-align: center;
 }
\ No newline at end of file

Modified: qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/query/QueryBrowserWidget.js
URL: http://svn.apache.org/viewvc/qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/query/QueryBrowserWidget.js?rev=1751884&r1=1751883&r2=1751884&view=diff
==============================================================================
--- qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/query/QueryBrowserWidget.js
(original)
+++ qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/query/QueryBrowserWidget.js
Fri Jul  8 11:35:13 2016
@@ -185,7 +185,13 @@ define(["dojo/_base/declare",
                     this.queryBrowserGrid = new Grid({
                         minRowsPerPage: Math.pow(2, 53) - 1,
                         columns: columns,
-                        collection: store
+                        collection: store,
+                        noDataMessage: 'No queries',
+                        noDataMessages: {
+                            all: "No queries",
+                            sharedWithMe: "No one has shared queries with you",
+                            myQueries: "You have no queries"
+                        }
                     }, this.queryBrowserGridNode);
 
                     this.queryBrowserGrid.on('.dgrid-row:dblclick', lang.hitch(this, this._openQuery));
@@ -337,8 +343,14 @@ define(["dojo/_base/declare",
                 },
                 _modifyFilter: function (event, targetWidget)
                 {
-                    this._preferenceStore.filter = targetWidget.get("value");
+                    var value = targetWidget.get("value");
+                    this._preferenceStore.filter = value;
+                    if (this.queryBrowserGrid.noDataMessages[value])
+                    {
+                        this.queryBrowserGrid.noDataMessage = this.queryBrowserGrid.noDataMessages[value];
+                    }
                     this.update();
+                    this.queryBrowserGrid.refresh();
                 }
             });
     });



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org


Mime
View raw message