]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: Settings service 25327/head
authorStephan Müller <smueller@suse.com>
Thu, 22 Nov 2018 13:44:36 +0000 (14:44 +0100)
committerStephan Müller <smueller@suse.com>
Tue, 4 Dec 2018 16:42:01 +0000 (17:42 +0100)
commitb32feea6f4a0b769b645fb506f5b9857a4e0fde6
treef899cf30081795d17ca4938fb69b221755b5a521
parent9c515d85db794567d6548c0faaa1243fcd542f4f
mgr/dashboard: Settings service

The settings service handles settings that are set
within the dashboard.

The service has a helpful function and a good memory. The function will
allow to check if a certain option is set, if it's set the callback will
be triggered. If the API request was made before for this particular
option, no API request is made anymore, as the service will remember if
the state is set or not.

Fixes: https://tracker.ceph.com/issues/37471
Signed-off-by: Stephan Müller <smueller@suse.com>
src/pybind/mgr/dashboard/frontend/src/app/shared/api/grafana.service.spec.ts [deleted file]
src/pybind/mgr/dashboard/frontend/src/app/shared/api/grafana.service.ts [deleted file]
src/pybind/mgr/dashboard/frontend/src/app/shared/api/settings.service.spec.ts [new file with mode: 0644]
src/pybind/mgr/dashboard/frontend/src/app/shared/api/settings.service.ts [new file with mode: 0755]
src/pybind/mgr/dashboard/frontend/src/app/shared/components/grafana/grafana.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/components/grafana/grafana.component.ts