mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
Merge pull request #4355 from w33ble/fix/saved-objects
Move state.tab watcher into promise handler
This commit is contained in:
commit
7be5413e27
1 changed files with 4 additions and 4 deletions
|
@ -42,13 +42,13 @@ define(function (require) {
|
|||
$scope.services = _.sortBy(data, 'title');
|
||||
var tab = $scope.services[0];
|
||||
if ($state.tab) tab = _.find($scope.services, {title: $state.tab});
|
||||
$scope.changeTab(tab);
|
||||
|
||||
$scope.$watch('state.tab', function (tab) {
|
||||
if (!tab) $scope.changeTab($scope.services[0]);
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
$scope.$watch('state.tab', function (tab) {
|
||||
if (!tab) $scope.changeTab($scope.services[0]);
|
||||
});
|
||||
|
||||
$scope.toggleAll = function () {
|
||||
if ($scope.selectedItems.length === $scope.currentTab.data.length) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue