|
|
@@ -50,6 +50,8 @@ function (angular, app, _, config) {
|
|
|
$scope.delete_row = function() {
|
|
|
$scope.appEvent('confirm-modal', {
|
|
|
title: 'Are you sure you want to delete this row?',
|
|
|
+ icon: 'fa-trash',
|
|
|
+ yesText: 'delete',
|
|
|
onConfirm: function() {
|
|
|
$scope.dashboard.rows = _.without($scope.dashboard.rows, $scope.row);
|
|
|
}
|
|
|
@@ -82,6 +84,8 @@ function (angular, app, _, config) {
|
|
|
$scope.remove_panel_from_row = function(row, panel) {
|
|
|
$scope.appEvent('confirm-modal', {
|
|
|
title: 'Are you sure you want to remove this panel?',
|
|
|
+ icon: 'fa-trash',
|
|
|
+ yesText: 'Delete',
|
|
|
onConfirm: function() {
|
|
|
row.panels = _.without(row.panels, panel);
|
|
|
}
|