mirror of
https://github.com/grafana/grafana.git
synced 2025-01-24 23:37:01 -06:00
style(playlist): remove console logging
This commit is contained in:
parent
b6f276265d
commit
ea7c2e73ad
@ -35,8 +35,6 @@ export class PlaylistEditCtrl {
|
||||
}
|
||||
|
||||
filterFoundPlaylistItems() {
|
||||
console.log('filter !');
|
||||
console.log(this.dashboardresult);
|
||||
this.filteredDashboards = _.reject(this.dashboardresult, (playlistItem) => {
|
||||
return _.findWhere(this.playlistItems, (listPlaylistItem) => {
|
||||
return parseInt(listPlaylistItem.value) === playlistItem.id;
|
||||
@ -56,8 +54,6 @@ export class PlaylistEditCtrl {
|
||||
}
|
||||
|
||||
addTagPlaylistItem(tag) {
|
||||
console.log(tag);
|
||||
|
||||
var playlistItem: any = {
|
||||
value: tag.term,
|
||||
type: 'dashboard_by_tag',
|
||||
@ -102,26 +98,12 @@ export class PlaylistEditCtrl {
|
||||
return !this.playlistItems.length;
|
||||
}
|
||||
|
||||
isSearchResultsEmpty() {
|
||||
return !this.dashboardresult.length;
|
||||
}
|
||||
|
||||
isSearchQueryEmpty() {
|
||||
return this.searchQuery === '';
|
||||
}
|
||||
|
||||
backToList() {
|
||||
this.$location.path('/playlists');
|
||||
}
|
||||
|
||||
isLoading() {
|
||||
return this.loading;
|
||||
}
|
||||
|
||||
searchStarted(promise) {
|
||||
promise.then((data) => {
|
||||
console.log('searchStarted: ', data);
|
||||
|
||||
this.dashboardresult = data.dashboardResult;
|
||||
this.tagresult = data.tagResult;
|
||||
this.filterFoundPlaylistItems();
|
||||
|
@ -57,7 +57,6 @@ export class PlaylistSearchCtrl {
|
||||
getTags() {
|
||||
var prom: any = {};
|
||||
prom.promise = this.backendSrv.get('/api/dashboards/tags').then((result) => {
|
||||
console.log('getTags: result', result);
|
||||
return {
|
||||
dashboardResult: [],
|
||||
tagResult: result
|
||||
|
Loading…
Reference in New Issue
Block a user