LP1828840: Option to hide grid save settings button in angular grid
authorJane Sandberg <sandbej@linnbenton.edu>
Sun, 26 May 2019 01:46:03 +0000 (18:46 -0700)
committerJane Sandberg <sandbej@linnbenton.edu>
Mon, 8 Jul 2019 01:19:33 +0000 (18:19 -0700)
commitc372a5a6d153b3db37e3b2c690bdb10d9726f581
treef3c3af606d15bb6eb9b2b3ce830f8662e987d690
parent1fe8de72aee2c77d831906985772637a8298713e
LP1828840: Option to hide grid save settings button in angular grid

To test:

1) Apply this commit.
2) Create an eg-grid in the Angular staff client without a persistKey
attribute (or use the one in the sandbox).
3) Compile the client and open the grid in your browser.  Open the
column picker menu.  Note that the Save button does not display.
4) Add an arbitrary value to the persistKey attribute.
5) Repeat step 3.  Note that the Save button does display.
6) Change the value of the persistKey attribute to "disabled".
7) Repeat step 3.  Note that the Save button does not display.

Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/eg2/src/app/share/grid/grid-toolbar.component.html
Open-ILS/src/eg2/src/app/share/grid/grid-toolbar.component.ts
Open-ILS/src/eg2/src/app/share/grid/grid.component.html
Open-ILS/src/eg2/src/app/share/grid/grid.component.ts