iguazio.dashboard-controls 1.2.13 → 1.2.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -28,8 +28,7 @@
28
28
  data-type="control"
29
29
  data-rule-type="message"
30
30
  data-search-states="$ctrl.searchStates"
31
- data-search-callback="$ctrl.onQueryChanged(searchQuery, ruleType)"
32
- data-on-search-submit="$ctrl.applyFilters()">
31
+ data-search-callback="$ctrl.onQueryChanged(searchQuery, ruleType)">
33
32
  </igz-search-input>
34
33
  </div>
35
34
 
@@ -95,9 +94,20 @@
95
94
  <span class="filter-label asterisk">
96
95
  {{ 'common:REPLICAS' | i18next }}
97
96
  </span>
97
+ <div class="online-replicas__checkbox">
98
+ <input type="checkbox"
99
+ id="onlineOnly"
100
+ data-ng-change="$ctrl.onExcludeOfflineChange()"
101
+ data-ng-disabled="$ctrl.excludeOfflineIsDisabled"
102
+ data-ng-model="$ctrl.excludeOffline">
103
+ <label for="onlineOnly" data-uib-tooltip="{{ $ctrl.excludeOfflineIsDisabled ? 'functions:TOOLTIP.NO_OFFLINE_REPLICAS' : '' | i18next }}">
104
+ {{ 'functions:SHOWN_ONLINE_ONLY' | i18next }}
105
+ </label>
106
+ </div>
98
107
  <igz-multiple-checkboxes data-ng-model="$ctrl.selectedReplicas"
99
108
  data-options="$ctrl.replicasList"
100
109
  data-dropdown="true"
110
+ data-title="{{ 'functions:PLACEHOLDER.SELECT_REPLICA' | i18next }}"
101
111
  data-select-all-none="true"
102
112
  data-ng-change="$ctrl.onCheckboxChange($event)"
103
113
  data-ng-required="true"
@@ -125,8 +135,7 @@
125
135
  <div class="actions-bar-left">
126
136
  <igz-action-item-refresh
127
137
  data-is-disabled="$ctrl.isFunctionDeploying()"
128
-
129
- data-refresh="$ctrl.searchWithParams($ctrl.page.number, $ctrl.page.size)">
138
+ data-refresh="$ctrl.refreshLogs()">
130
139
  </igz-action-item-refresh>
131
140
  </div>
132
141
  <div class="actions-bar-left">
@@ -154,7 +163,7 @@
154
163
  <div class="control-panel-log-table common-table">
155
164
  <div class="search-input-not-found"
156
165
  data-ng-if="$ctrl.logs.length === 0">
157
- {{ 'functions:NO_LOGS_HAVE_BEEN_FOUND' | i18next }}
166
+ {{ 'functions:NO_LOGS_WERE_FOUND' | i18next }}
158
167
  </div>
159
168
 
160
169
  <div data-igz-extend-background
@@ -35,13 +35,12 @@ such restriction.
35
35
  controller: NclVersionController
36
36
  });
37
37
 
38
- function NclVersionController($i18next, $interval, $injector, $rootScope, $scope, $state, $stateParams, $transitions, $timeout,
38
+ function NclVersionController($i18next, $interval, $rootScope, $scope, $state, $stateParams, $transitions, $timeout,
39
39
  i18next, lodash, ngDialog, ConfigService, DialogsService, ExportService,
40
40
  FunctionsService, GeneralDataService, NuclioHeaderService,
41
41
  VersionHelperService) {
42
42
  var ctrl = this;
43
43
  var deregisterFunction = null;
44
- var servicesService = null;
45
44
  var interval = null;
46
45
  var lng = i18next.language;
47
46
 
@@ -228,10 +227,6 @@ such restriction.
228
227
  }
229
228
  });
230
229
 
231
- if ($injector.has('ServicesService')) {
232
- servicesService = $injector.get('ServicesService')
233
- }
234
-
235
230
  setImageNamePrefixTemplate();
236
231
  setIngressHost();
237
232
  initLogTabs();
@@ -687,18 +682,11 @@ such restriction.
687
682
  * Checks if the "Execution log" tab should be shown
688
683
  */
689
684
  function initLogTabs() {
690
- if (lodash.get(ConfigService, 'url.elasticsearch.path', '') && servicesService) {
691
- servicesService.getServices().then(function (result) {
692
- var services = result.services;
693
- var logForwarderService = lodash.find(services, ['spec.name', 'log-forwarder']);
694
-
695
- if (servicesService.isEnabled(logForwarderService)) {
696
- ctrl.navigationTabsConfig.push({
697
- tabName: $i18next.t('functions:EXECUTION_LOG', { lng: lng }),
698
- id: 'execution-log',
699
- uiRoute: 'app.project.function.edit.execution-log'
700
- });
701
- }
685
+ if (lodash.get(ConfigService, 'nuclio.defaultProxyLogsSource', '') === 'elasticsearch') {
686
+ ctrl.navigationTabsConfig.push({
687
+ tabName: $i18next.t('functions:EXECUTION_LOG', { lng: lng }),
688
+ id: 'execution-log',
689
+ uiRoute: 'app.project.function.edit.execution-log'
702
690
  });
703
691
  }
704
692
  }