fablabbcn / smartcitizen-web

The Smart Citizen Kit platform
https://smartcitizen.me
GNU Affero General Public License v3.0
13 stars 7 forks source link

WIP: Set devices to private #402

Closed tuengominh closed 5 years ago

tuengominh commented 5 years ago

Hi @viktorsmari

I added the checkbox "Make this device private" when a user creates or edits kit info. The checkbox only visible to users with 'researcher' and 'admin' roles.

Screen Shot 2019-08-29 at 4 06 10 PM

With other roles, the option is hidden. I tested with both newKit & editKit views, both when my role is researcher and admin.

Screen Shot 2019-08-29 at 4 07 22 PM

Also, kit data will be hidden in the showKit view, and there will be an alert:

Screen Shot 2019-08-28 at 3 12 51 PM

There are also some minor changes in index.scss regarding styles of buttons and hyperlinks. Please help me to review!

Thanks,