From e00d1eeedebb4149686971b45d8ea6ea4f963a64 Mon Sep 17 00:00:00 2001 From: Becky Siegel Date: Fri, 9 Jun 2017 14:39:15 -0700 Subject: [PATCH] Implement list-view-behavior Even though a gr-list-view element has been established for many of the common list view functions, The tables themselves are still generated by the parent element and passed as . There were many common functions used in the table generation itself. Break out those common functions into a behavior, and implement in gr-admin-group-list and gr-admin-project list. This will be used in further admin pages as well. Change-Id: I60227b8c30ac18176bbf923ee1fb02bdd985e5c3 --- .../gr-list-view-behavior.html | 55 ++++++++++++ .../gr-list-view-behavior_test.html | 89 +++++++++++++++++++ .../gr-admin-group-list.html | 9 +- .../gr-admin-group-list.js | 37 +++----- .../gr-admin-group-list_test.html | 4 +- .../gr-admin-project-list.html | 9 +- .../gr-admin-project-list.js | 38 +++----- .../gr-admin-project-list_test.html | 4 +- 8 files changed, 176 insertions(+), 69 deletions(-) create mode 100644 polygerrit-ui/app/behaviors/gr-list-view-behavior/gr-list-view-behavior.html create mode 100644 polygerrit-ui/app/behaviors/gr-list-view-behavior/gr-list-view-behavior_test.html diff --git a/polygerrit-ui/app/behaviors/gr-list-view-behavior/gr-list-view-behavior.html b/polygerrit-ui/app/behaviors/gr-list-view-behavior/gr-list-view-behavior.html new file mode 100644 index 0000000000..f2b12ee39e --- /dev/null +++ b/polygerrit-ui/app/behaviors/gr-list-view-behavior/gr-list-view-behavior.html @@ -0,0 +1,55 @@ + + + + diff --git a/polygerrit-ui/app/behaviors/gr-list-view-behavior/gr-list-view-behavior_test.html b/polygerrit-ui/app/behaviors/gr-list-view-behavior/gr-list-view-behavior_test.html new file mode 100644 index 0000000000..599f691ec4 --- /dev/null +++ b/polygerrit-ui/app/behaviors/gr-list-view-behavior/gr-list-view-behavior_test.html @@ -0,0 +1,89 @@ + + + + +keyboard-shortcut-behavior + + + + + + + + + + + diff --git a/polygerrit-ui/app/elements/admin/gr-admin-group-list/gr-admin-group-list.html b/polygerrit-ui/app/elements/admin/gr-admin-group-list/gr-admin-group-list.html index 38afe66d64..69c8d96892 100644 --- a/polygerrit-ui/app/elements/admin/gr-admin-group-list/gr-admin-group-list.html +++ b/polygerrit-ui/app/elements/admin/gr-admin-group-list/gr-admin-group-list.html @@ -14,8 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. --> - - + @@ -39,14 +38,14 @@ limitations under the License. Group Description Visible To All - + Loading...