From b2add1977a328e9ef75ff2c68f53c50932d35d9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Thu, 30 Nov 2017 16:35:27 +0100 Subject: [PATCH] ux: progress on new page header --- pkg/api/index.go | 4 - public/app/features/org/org_users_ctrl.ts | 5 +- .../app/features/org/partials/orgUsers.html | 92 +++++++++++-------- public/app/features/plugins/ds_edit_ctrl.ts | 8 +- .../features/plugins/partials/ds_edit.html | 60 ++++++------ .../plugins/partials/ds_http_settings.html | 4 +- public/sass/layout/_page.scss | 8 ++ 7 files changed, 103 insertions(+), 78 deletions(-) diff --git a/pkg/api/index.go b/pkg/api/index.go index 7f30dcf9f8a..36f20c82083 100644 --- a/pkg/api/index.go +++ b/pkg/api/index.go @@ -215,10 +215,6 @@ func setIndexViewData(c *middleware.Context) (*dtos.IndexViewData, error) { Description: "Add and configure data sources", Id: "datasources", Url: setting.AppSubUrl + "/datasources", - Children: []*dtos.NavLink{ - {Text: "List", Url: setting.AppSubUrl + "/datasources", Icon: "gicon gicon-datasources"}, - {Text: "New", Url: setting.AppSubUrl + "/datasources", Icon: "fa fa-fw fa-plus"}, - }, }, { Text: "Members", diff --git a/public/app/features/org/org_users_ctrl.ts b/public/app/features/org/org_users_ctrl.ts index 8127120e341..1686a1c3424 100644 --- a/public/app/features/org/org_users_ctrl.ts +++ b/public/app/features/org/org_users_ctrl.ts @@ -23,7 +23,7 @@ export class OrgUsersCtrl { role: 'Viewer', }; - this.navModel = navModelSrv.getNav('cfg', 'users'); + this.navModel = navModelSrv.getNav('cfg', 'users', 0); this.get(); this.editor = { index: 0 }; @@ -44,8 +44,7 @@ export class OrgUsersCtrl { if (this.externalUserMngLinkName) { return this.externalUserMngLinkName; } - - return "Add Members"; + return "Add Member"; } get() { diff --git a/public/app/features/org/partials/orgUsers.html b/public/app/features/org/partials/orgUsers.html index c612ab95271..5f98614b854 100644 --- a/public/app/features/org/partials/orgUsers.html +++ b/public/app/features/org/partials/orgUsers.html @@ -1,34 +1,52 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -
-