Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
c297a1c5
Commit
c297a1c5
authored
Jan 03, 2018
by
Johannes Schill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: Rename directive user-pickerr (yes two r's) to select-user-picker
parent
1a993378
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
50 additions
and
26 deletions
+50
-26
public/app/core/angular_wrappers.ts
+13
-17
public/app/core/angular_wrappers.ts.orig
+36
-0
public/app/features/org/partials/team_details.html
+1
-9
No files found.
public/app/core/angular_wrappers.ts
View file @
c297a1c5
import
{
react2AngularDirective
}
from
"app/core/utils/react2angular"
;
import
{
react2AngularDirective
}
from
'app/core/utils/react2angular'
;
import
{
PasswordStrength
}
from
"./components/PasswordStrength"
;
import
{
PasswordStrength
}
from
'./components/PasswordStrength'
;
import
PageHeader
from
"./components/PageHeader/PageHeader"
;
import
PageHeader
from
'./components/PageHeader/PageHeader'
;
import
EmptyListCTA
from
"./components/EmptyListCTA/EmptyListCTA"
;
import
EmptyListCTA
from
'./components/EmptyListCTA/EmptyListCTA'
;
import
LoginBackground
from
"./components/Login/LoginBackground"
;
import
LoginBackground
from
'./components/Login/LoginBackground'
;
import
{
SearchResult
}
from
"./components/search/SearchResult"
;
import
{
SearchResult
}
from
'./components/search/SearchResult'
;
import
UserPicker
from
"./components/UserPicker/UserPicker"
;
import
UserPicker
from
'./components/UserPicker/UserPicker'
;
export
function
registerAngularDirectives
()
{
export
function
registerAngularDirectives
()
{
react2AngularDirective
(
"passwordStrength"
,
PasswordStrength
,
[
"password"
]);
react2AngularDirective
(
'passwordStrength'
,
PasswordStrength
,
[
'password'
]);
react2AngularDirective
(
"pageHeader"
,
PageHeader
,
[
"model"
,
"noTabs"
]);
react2AngularDirective
(
'pageHeader'
,
PageHeader
,
[
'model'
,
'noTabs'
]);
react2AngularDirective
(
"emptyListCta"
,
EmptyListCTA
,
[
"model"
]);
react2AngularDirective
(
'emptyListCta'
,
EmptyListCTA
,
[
'model'
]);
react2AngularDirective
(
"loginBackground"
,
LoginBackground
,
[]);
react2AngularDirective
(
'loginBackground'
,
LoginBackground
,
[]);
react2AngularDirective
(
"searchResult"
,
SearchResult
,
[]);
react2AngularDirective
(
'searchResult'
,
SearchResult
,
[]);
react2AngularDirective
(
"userPickerr"
,
UserPicker
,
[
react2AngularDirective
(
'selectUserPicker'
,
UserPicker
,
[
'backendSrv'
,
'teamId'
,
'refreshList'
]);
"backendSrv"
,
"teamId"
,
"refreshList"
]);
}
}
public/app/core/angular_wrappers.ts.orig
0 → 100644
View file @
c297a1c5
<<<<<<< HEAD
import { react2AngularDirective } from "app/core/utils/react2angular";
import { PasswordStrength } from "./components/PasswordStrength";
import PageHeader from "./components/PageHeader/PageHeader";
import EmptyListCTA from "./components/EmptyListCTA/EmptyListCTA";
import LoginBackground from "./components/Login/LoginBackground";
import { SearchResult } from "./components/search/SearchResult";
import UserPicker from "./components/UserPicker/UserPicker";
export function registerAngularDirectives() {
react2AngularDirective("passwordStrength", PasswordStrength, ["password"]);
react2AngularDirective("pageHeader", PageHeader, ["model", "noTabs"]);
react2AngularDirective("emptyListCta", EmptyListCTA, ["model"]);
react2AngularDirective("loginBackground", LoginBackground, []);
react2AngularDirective("searchResult", SearchResult, []);
react2AngularDirective("userPickerr", UserPicker, [
"backendSrv",
"teamId",
"refreshList"
]);
=======
import { react2AngularDirective } from 'app/core/utils/react2angular';
import { PasswordStrength } from './components/PasswordStrength';
import PageHeader from './components/PageHeader/PageHeader';
import EmptyListCTA from './components/EmptyListCTA/EmptyListCTA';
import LoginBackground from './components/Login/LoginBackground';
import UserPicker from './components/UserPicker/UserPicker';
export function registerAngularDirectives() {
react2AngularDirective('passwordStrength', PasswordStrength, ['password']);
react2AngularDirective('pageHeader', PageHeader, ['model', 'noTabs']);
react2AngularDirective('emptyListCta', EmptyListCTA, ['model']);
react2AngularDirective('loginBackground', LoginBackground, []);
react2AngularDirective('selectUserPicker', UserPicker, ['backendSrv', 'teamId', 'refreshList']);
>>>>>>> fix: Rename directive user-pickerr (yes two r's) to select-user-picker
}
public/app/features/org/partials/team_details.html
View file @
c297a1c5
...
@@ -26,18 +26,10 @@
...
@@ -26,18 +26,10 @@
<div
class=
"gf-form-group"
>
<div
class=
"gf-form-group"
>
<h3
class=
"page-heading"
>
Team Members
</h3>
<h3
class=
"page-heading"
>
Team Members
</h3>
<form
name=
"ctrl.addMemberForm"
class=
"gf-form-group"
>
<div
class=
"gf-form"
>
<span
class=
"gf-form-label width-10"
>
Add member
</span>
<user-picker
user-picked=
"ctrl.userPicked($user)"
></user-picker>
</div>
</form>
<form
name=
"ctrl.addMemberForm"
class=
"gf-form-group"
>
<form
name=
"ctrl.addMemberForm"
class=
"gf-form-group"
>
<div
class=
"gf-form"
>
<div
class=
"gf-form"
>
<span
class=
"gf-form-label width-10"
>
Add member
</span>
<span
class=
"gf-form-label width-10"
>
Add member
</span>
<
user-pickerr
backendSrv=
"ctrl.backendSrv"
teamId=
"ctrl.$routeParams.id"
refreshList=
"ctrl.get"
teamMembers=
"ctrl.teamMembers"
></user-picker
r>
<
select-user-picker
backendSrv=
"ctrl.backendSrv"
teamId=
"ctrl.$routeParams.id"
refreshList=
"ctrl.get"
teamMembers=
"ctrl.teamMembers"
></select-user-picke
r>
</div>
</div>
</form>
</form>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment