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
1ec97e51
Commit
1ec97e51
authored
Jan 12, 2016
by
bergquist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(playlist): shortens urls
parent
458d1506
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
pkg/api/api.go
+2
-2
public/app/features/playlist/playlist_edit_ctrl.js
+1
-1
public/app/features/playlist/playlist_routes.js
+1
-1
No files found.
pkg/api/api.go
View file @
1ec97e51
...
@@ -176,8 +176,8 @@ func Register(r *macaron.Macaron) {
...
@@ -176,8 +176,8 @@ func Register(r *macaron.Macaron) {
r
.
Group
(
"/playlists"
,
func
()
{
r
.
Group
(
"/playlists"
,
func
()
{
r
.
Get
(
"/"
,
wrap
(
SearchPlaylists
))
r
.
Get
(
"/"
,
wrap
(
SearchPlaylists
))
r
.
Get
(
"/:id"
,
ValidateOrgPlaylist
,
wrap
(
GetPlaylist
))
r
.
Get
(
"/:id"
,
ValidateOrgPlaylist
,
wrap
(
GetPlaylist
))
r
.
Get
(
"/:id/
playlist
items"
,
ValidateOrgPlaylist
,
wrap
(
GetPlaylistItems
))
r
.
Get
(
"/:id/items"
,
ValidateOrgPlaylist
,
wrap
(
GetPlaylistItems
))
r
.
Get
(
"/:id/
playlist
dashboards"
,
ValidateOrgPlaylist
,
wrap
(
GetPlaylistDashboards
))
r
.
Get
(
"/:id/dashboards"
,
ValidateOrgPlaylist
,
wrap
(
GetPlaylistDashboards
))
r
.
Delete
(
"/:id"
,
reqEditorRole
,
ValidateOrgPlaylist
,
wrap
(
DeletePlaylist
))
r
.
Delete
(
"/:id"
,
reqEditorRole
,
ValidateOrgPlaylist
,
wrap
(
DeletePlaylist
))
r
.
Put
(
"/:id"
,
reqEditorRole
,
bind
(
m
.
UpdatePlaylistQuery
{}),
ValidateOrgPlaylist
,
wrap
(
UpdatePlaylist
))
r
.
Put
(
"/:id"
,
reqEditorRole
,
bind
(
m
.
UpdatePlaylistQuery
{}),
ValidateOrgPlaylist
,
wrap
(
UpdatePlaylist
))
r
.
Post
(
"/"
,
reqEditorRole
,
bind
(
m
.
CreatePlaylistQuery
{}),
wrap
(
CreatePlaylist
))
r
.
Post
(
"/"
,
reqEditorRole
,
bind
(
m
.
CreatePlaylistQuery
{}),
wrap
(
CreatePlaylist
))
...
...
public/app/features/playlist/playlist_edit_ctrl.js
View file @
1ec97e51
...
@@ -25,7 +25,7 @@ function (angular, config, _) {
...
@@ -25,7 +25,7 @@ function (angular, config, _) {
$scope
.
playlist
=
result
;
$scope
.
playlist
=
result
;
});
});
backendSrv
.
get
(
'/api/playlists/'
+
playlistId
+
'/
playlist
items'
)
backendSrv
.
get
(
'/api/playlists/'
+
playlistId
+
'/items'
)
.
then
(
function
(
result
)
{
.
then
(
function
(
result
)
{
$scope
.
playlistItems
=
result
;
$scope
.
playlistItems
=
result
;
});
});
...
...
public/app/features/playlist/playlist_routes.js
View file @
1ec97e51
...
@@ -31,7 +31,7 @@ function (angular) {
...
@@ -31,7 +31,7 @@ function (angular) {
return
backendSrv
.
get
(
'/api/playlists/'
+
playlistId
)
return
backendSrv
.
get
(
'/api/playlists/'
+
playlistId
)
.
then
(
function
(
playlist
)
{
.
then
(
function
(
playlist
)
{
return
backendSrv
.
get
(
'/api/playlists/'
+
playlistId
+
'/
playlist
dashboards'
)
return
backendSrv
.
get
(
'/api/playlists/'
+
playlistId
+
'/dashboards'
)
.
then
(
function
(
dashboards
)
{
.
then
(
function
(
dashboards
)
{
playlistSrv
.
start
(
dashboards
,
playlist
.
timespan
);
playlistSrv
.
start
(
dashboards
,
playlist
.
timespan
);
});
});
...
...
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