LP1828840: Option to hide grid save settings button in angular grid user/sandbergja/lp1828840_ng_grid_no_save_button_without_pkey
authorJane Sandberg <sandbej@linnbenton.edu>
Sun, 26 May 2019 01:46:03 +0000 (18:46 -0700)
committerJane Sandberg <sandbej@linnbenton.edu>
Sun, 26 May 2019 02:30:37 +0000 (19:30 -0700)
commit29685fc3fa6712d8f66c03eb820bf43201bba7b2
tree668623141383e9925281dec5ae3a785b9324c954
parent4701869d8e4a1fd57b2ee1c1600b56a98e962e09
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>
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