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
1a993378
Commit
1a993378
authored
Dec 21, 2017
by
Johannes Schill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: Accidently added the conflict files (#10289)
parent
76ba7d1f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
373 deletions
+0
-373
public/app/features/org/team_details_ctrl_BACKUP_16633.ts
+0
-127
public/app/features/org/team_details_ctrl_BASE_16633.ts
+0
-77
public/app/features/org/team_details_ctrl_LOCAL_16633.ts
+0
-79
public/app/features/org/team_details_ctrl_REMOTE_16633.ts
+0
-90
No files found.
public/app/features/org/team_details_ctrl_BACKUP_16633.ts
deleted
100644 → 0
View file @
76ba7d1f
import
coreModule
from
"app/core/core_module"
;
export
default
class
TeamDetailsCtrl
{
team
:
Team
;
teamMembers
:
User
[]
=
[];
navModel
:
any
;
/** @ngInject **/
constructor
(
private
$scope
,
private
backendSrv
,
private
$routeParams
,
navModelSrv
)
{
this
.
navModel
=
navModelSrv
.
getNav
(
"cfg"
,
"teams"
,
0
);
this
.
get
=
this
.
get
.
bind
(
this
);
this
.
get
();
}
get
()
{
if
(
this
.
$routeParams
&&
this
.
$routeParams
.
id
)
{
this
.
backendSrv
.
get
(
`/api/teams/
${
this
.
$routeParams
.
id
}
`
).
then
(
result
=>
{
this
.
team
=
result
;
});
<<<<<<<
HEAD
this
.
backendSrv
.
get
(
`/api/teams/
${
this
.
$routeParams
.
id
}
/members`
).
then
(
result
=>
{
this
.
teamMembers
=
result
;
});
=======
this
.
backendSrv
.
get
(
`/api/teams/
${
this
.
$routeParams
.
id
}
/members`
)
.
then
(
result
=>
{
this
.
teamMembers
=
result
;
});
>>>>>>>
ux
:
POC
on
new
select
box
for
the
user
picker
(
#
10289
)
}
}
removeTeamMember
(
teamMember
:
TeamMember
)
{
<<<<<<<
HEAD
this
.
$scope
.
appEvent
(
'confirm-modal'
,
{
title
:
'Remove Member'
,
text
:
'Are you sure you want to remove '
+
teamMember
.
login
+
' from this group?'
,
yesText
:
'Remove'
,
icon
:
'fa-warning'
,
=======
this
.
$scope
.
appEvent
(
"confirm-modal"
,
{
title
:
"Remove Member"
,
text
:
"Are you sure you want to remove "
+
teamMember
.
login
+
" from this group?"
,
yesText
:
"Remove"
,
icon
:
"fa-warning"
,
>>>>>>>
ux
:
POC
on
new
select
box
for
the
user
picker
(
#
10289
)
onConfirm
:
()
=>
{
this
.
removeMemberConfirmed
(
teamMember
);
},
});
}
removeMemberConfirmed
(
teamMember
:
TeamMember
)
{
<<<<<<<
HEAD
this
.
backendSrv
.
delete
(
`/api/teams/
${
this
.
$routeParams
.
id
}
/members/
${
teamMember
.
userId
}
`
).
then
(
this
.
get
.
bind
(
this
));
=======
this
.
backendSrv
.
delete
(
`/api/teams/
${
this
.
$routeParams
.
id
}
/members/
${
teamMember
.
userId
}
`
)
.
then
(
this
.
get
);
>>>>>>>
ux
:
POC
on
new
select
box
for
the
user
picker
(
#
10289
)
}
update
()
{
if
(
!
this
.
$scope
.
teamDetailsForm
.
$valid
)
{
return
;
}
<<<<<<<
HEAD
this
.
backendSrv
.
put
(
'/api/teams/'
+
this
.
team
.
id
,
{
name
:
this
.
team
.
name
,
email
:
this
.
team
.
email
,
});
}
userPicked
(
user
)
{
this
.
backendSrv
.
post
(
`/api/teams/
${
this
.
$routeParams
.
id
}
/members`
,
{
userId
:
user
.
id
}).
then
(()
=>
{
this
.
$scope
.
$broadcast
(
'user-picker-reset'
);
this
.
get
();
});
=======
this
.
backendSrv
.
put
(
"/api/teams/"
+
this
.
team
.
id
,
{
name
:
this
.
team
.
name
});
}
userPicked
(
user
)
{
this
.
backendSrv
.
post
(
`/api/teams/
${
this
.
$routeParams
.
id
}
/members`
,
{
userId
:
user
.
id
})
.
then
(()
=>
{
this
.
$scope
.
$broadcast
(
"user-picker-reset"
);
this
.
get
();
});
>>>>>>>
ux
:
POC
on
new
select
box
for
the
user
picker
(
#
10289
)
}
}
export
interface
Team
{
id
:
number
;
name
:
string
;
email
:
string
;
}
export
interface
User
{
id
:
number
;
name
:
string
;
login
:
string
;
email
:
string
;
}
export
interface
TeamMember
{
userId
:
number
;
name
:
string
;
login
:
string
;
}
<<<<<<<
HEAD
coreModule
.
controller
(
'TeamDetailsCtrl'
,
TeamDetailsCtrl
);
=======
coreModule
.
controller
(
"TeamDetailsCtrl"
,
TeamDetailsCtrl
);
>>>>>>>
ux
:
POC
on
new
select
box
for
the
user
picker
(
#
10289
)
public/app/features/org/team_details_ctrl_BASE_16633.ts
deleted
100644 → 0
View file @
76ba7d1f
import
coreModule
from
'app/core/core_module'
;
export
default
class
TeamDetailsCtrl
{
team
:
Team
;
teamMembers
:
User
[]
=
[];
navModel
:
any
;
/** @ngInject **/
constructor
(
private
$scope
,
private
backendSrv
,
private
$routeParams
,
navModelSrv
)
{
this
.
navModel
=
navModelSrv
.
getNav
(
'cfg'
,
'teams'
,
0
);
this
.
get
();
}
get
()
{
if
(
this
.
$routeParams
&&
this
.
$routeParams
.
id
)
{
this
.
backendSrv
.
get
(
`/api/teams/
${
this
.
$routeParams
.
id
}
`
)
.
then
(
result
=>
{
this
.
team
=
result
;
});
this
.
backendSrv
.
get
(
`/api/teams/
${
this
.
$routeParams
.
id
}
/members`
)
.
then
(
result
=>
{
this
.
teamMembers
=
result
;
});
}
}
removeTeamMember
(
teamMember
:
TeamMember
)
{
this
.
$scope
.
appEvent
(
'confirm-modal'
,
{
title
:
'Remove Member'
,
text
:
'Are you sure you want to remove '
+
teamMember
.
login
+
' from this group?'
,
yesText
:
"Remove"
,
icon
:
"fa-warning"
,
onConfirm
:
()
=>
{
this
.
removeMemberConfirmed
(
teamMember
);
}
});
}
removeMemberConfirmed
(
teamMember
:
TeamMember
)
{
this
.
backendSrv
.
delete
(
`/api/teams/
${
this
.
$routeParams
.
id
}
/members/
${
teamMember
.
userId
}
`
)
.
then
(
this
.
get
.
bind
(
this
));
}
update
()
{
if
(
!
this
.
$scope
.
teamDetailsForm
.
$valid
)
{
return
;
}
this
.
backendSrv
.
put
(
'/api/teams/'
+
this
.
team
.
id
,
{
name
:
this
.
team
.
name
});
}
userPicked
(
user
)
{
this
.
backendSrv
.
post
(
`/api/teams/
${
this
.
$routeParams
.
id
}
/members`
,
{
userId
:
user
.
id
}).
then
(()
=>
{
this
.
$scope
.
$broadcast
(
'user-picker-reset'
);
this
.
get
();
});
}
}
export
interface
Team
{
id
:
number
;
name
:
string
;
}
export
interface
User
{
id
:
number
;
name
:
string
;
login
:
string
;
email
:
string
;
}
export
interface
TeamMember
{
userId
:
number
;
name
:
string
;
login
:
string
;
}
coreModule
.
controller
(
'TeamDetailsCtrl'
,
TeamDetailsCtrl
);
public/app/features/org/team_details_ctrl_LOCAL_16633.ts
deleted
100644 → 0
View file @
76ba7d1f
import
coreModule
from
'app/core/core_module'
;
export
default
class
TeamDetailsCtrl
{
team
:
Team
;
teamMembers
:
User
[]
=
[];
navModel
:
any
;
/** @ngInject **/
constructor
(
private
$scope
,
private
backendSrv
,
private
$routeParams
,
navModelSrv
)
{
this
.
navModel
=
navModelSrv
.
getNav
(
'cfg'
,
'teams'
,
0
);
this
.
get
();
}
get
()
{
if
(
this
.
$routeParams
&&
this
.
$routeParams
.
id
)
{
this
.
backendSrv
.
get
(
`/api/teams/
${
this
.
$routeParams
.
id
}
`
).
then
(
result
=>
{
this
.
team
=
result
;
});
this
.
backendSrv
.
get
(
`/api/teams/
${
this
.
$routeParams
.
id
}
/members`
).
then
(
result
=>
{
this
.
teamMembers
=
result
;
});
}
}
removeTeamMember
(
teamMember
:
TeamMember
)
{
this
.
$scope
.
appEvent
(
'confirm-modal'
,
{
title
:
'Remove Member'
,
text
:
'Are you sure you want to remove '
+
teamMember
.
login
+
' from this group?'
,
yesText
:
'Remove'
,
icon
:
'fa-warning'
,
onConfirm
:
()
=>
{
this
.
removeMemberConfirmed
(
teamMember
);
},
});
}
removeMemberConfirmed
(
teamMember
:
TeamMember
)
{
this
.
backendSrv
.
delete
(
`/api/teams/
${
this
.
$routeParams
.
id
}
/members/
${
teamMember
.
userId
}
`
).
then
(
this
.
get
.
bind
(
this
));
}
update
()
{
if
(
!
this
.
$scope
.
teamDetailsForm
.
$valid
)
{
return
;
}
this
.
backendSrv
.
put
(
'/api/teams/'
+
this
.
team
.
id
,
{
name
:
this
.
team
.
name
,
email
:
this
.
team
.
email
,
});
}
userPicked
(
user
)
{
this
.
backendSrv
.
post
(
`/api/teams/
${
this
.
$routeParams
.
id
}
/members`
,
{
userId
:
user
.
id
}).
then
(()
=>
{
this
.
$scope
.
$broadcast
(
'user-picker-reset'
);
this
.
get
();
});
}
}
export
interface
Team
{
id
:
number
;
name
:
string
;
email
:
string
;
}
export
interface
User
{
id
:
number
;
name
:
string
;
login
:
string
;
email
:
string
;
}
export
interface
TeamMember
{
userId
:
number
;
name
:
string
;
login
:
string
;
}
coreModule
.
controller
(
'TeamDetailsCtrl'
,
TeamDetailsCtrl
);
public/app/features/org/team_details_ctrl_REMOTE_16633.ts
deleted
100644 → 0
View file @
76ba7d1f
import
coreModule
from
"app/core/core_module"
;
export
default
class
TeamDetailsCtrl
{
team
:
Team
;
teamMembers
:
User
[]
=
[];
navModel
:
any
;
/** @ngInject **/
constructor
(
private
$scope
,
private
backendSrv
,
private
$routeParams
,
navModelSrv
)
{
this
.
navModel
=
navModelSrv
.
getNav
(
"cfg"
,
"teams"
,
0
);
this
.
get
=
this
.
get
.
bind
(
this
);
this
.
get
();
}
get
()
{
if
(
this
.
$routeParams
&&
this
.
$routeParams
.
id
)
{
this
.
backendSrv
.
get
(
`/api/teams/
${
this
.
$routeParams
.
id
}
`
).
then
(
result
=>
{
this
.
team
=
result
;
});
this
.
backendSrv
.
get
(
`/api/teams/
${
this
.
$routeParams
.
id
}
/members`
)
.
then
(
result
=>
{
this
.
teamMembers
=
result
;
});
}
}
removeTeamMember
(
teamMember
:
TeamMember
)
{
this
.
$scope
.
appEvent
(
"confirm-modal"
,
{
title
:
"Remove Member"
,
text
:
"Are you sure you want to remove "
+
teamMember
.
login
+
" from this group?"
,
yesText
:
"Remove"
,
icon
:
"fa-warning"
,
onConfirm
:
()
=>
{
this
.
removeMemberConfirmed
(
teamMember
);
}
});
}
removeMemberConfirmed
(
teamMember
:
TeamMember
)
{
this
.
backendSrv
.
delete
(
`/api/teams/
${
this
.
$routeParams
.
id
}
/members/
${
teamMember
.
userId
}
`
)
.
then
(
this
.
get
);
}
update
()
{
if
(
!
this
.
$scope
.
teamDetailsForm
.
$valid
)
{
return
;
}
this
.
backendSrv
.
put
(
"/api/teams/"
+
this
.
team
.
id
,
{
name
:
this
.
team
.
name
});
}
userPicked
(
user
)
{
this
.
backendSrv
.
post
(
`/api/teams/
${
this
.
$routeParams
.
id
}
/members`
,
{
userId
:
user
.
id
})
.
then
(()
=>
{
this
.
$scope
.
$broadcast
(
"user-picker-reset"
);
this
.
get
();
});
}
}
export
interface
Team
{
id
:
number
;
name
:
string
;
}
export
interface
User
{
id
:
number
;
name
:
string
;
login
:
string
;
email
:
string
;
}
export
interface
TeamMember
{
userId
:
number
;
name
:
string
;
login
:
string
;
}
coreModule
.
controller
(
"TeamDetailsCtrl"
,
TeamDetailsCtrl
);
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