From: Tatjana Dehler Date: Wed, 22 Aug 2018 13:18:57 +0000 (+0200) Subject: mgr/dashboard: add create functionality to the frontend X-Git-Tag: v14.0.1~99^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F23230%2Fhead;p=ceph.git mgr/dashboard: add create functionality to the frontend Add the missing functionality to create config options and related tests to the frontend. Fixes: http://tracker.ceph.com/issues/24455 Signed-off-by: Tatjana Dehler --- diff --git a/src/pybind/mgr/dashboard/frontend/src/app/app-routing.module.ts b/src/pybind/mgr/dashboard/frontend/src/app/app-routing.module.ts index 84af029ac4c0d..8347dfae39022 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/app-routing.module.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/app-routing.module.ts @@ -78,7 +78,7 @@ const routes: Routes = [ }, { path: 'configuration', - data: { breadcrumbs: 'Cluster/Configuration Documentation' }, + data: { breadcrumbs: 'Cluster/Configuration' }, children: [ { path: '', component: ConfigurationComponent }, { diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/configuration/configuration-form/configuration-form-create-request.model.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/configuration/configuration-form/configuration-form-create-request.model.ts new file mode 100644 index 0000000000000..bca65a887c5d0 --- /dev/null +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/configuration/configuration-form/configuration-form-create-request.model.ts @@ -0,0 +1,4 @@ +export class ConfigFormCreateRequestModel { + name: string; + value: Array = []; +} diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/configuration/configuration-form/configuration-form.component.html b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/configuration/configuration-form/configuration-form.component.html index 74edf15e8d680..ea467161a3089 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/configuration/configuration-form/configuration-form.component.html +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/configuration/configuration-form/configuration-form.component.html @@ -154,6 +154,11 @@