@sgcloud-sgsistemas/base 1.0.26 → 1.0.28

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sgcloud-sgsistemas/base",
3
- "version": "1.0.26",
3
+ "version": "1.0.28",
4
4
  "description": "Base para os sistemas da mobiage",
5
5
  "repository": {
6
6
  "type": "private",
@@ -36,7 +36,7 @@ const controller = ($scope, $timeout, baseNotificationService, $sce) => {
36
36
 
37
37
  const onClickOutside = (event) => {
38
38
  $timeout(() => {
39
- if (event.srcElement.id == 'mbg-topbar-notification-show-more') {
39
+ if ((event.srcElement.id || '').includes('mbg-topbar-notification-show-more')) {
40
40
  return
41
41
  }
42
42
  vm.notificationOpen = false
@@ -141,6 +141,7 @@
141
141
  <a class="button-see-more"
142
142
  tabindex="-1"
143
143
  ng-if="true"
144
+ id="mbg-topbar-notification-show-more-unread"
144
145
  ng-click="seeMoreUnread()">
145
146
  Ver mais</a>
146
147
  </div>
@@ -221,7 +222,7 @@
221
222
  <div class="col-md-12 see-more-wrapper" tabindex="-1">
222
223
  <a class="button-see-more"
223
224
  tabindex="-1"
224
- id="mbg-topbar-notification-show-more"
225
+ id="mbg-topbar-notification-show-more-read"
225
226
  ng-if="true"
226
227
  ng-click="seeMoreRead()">
227
228
  Ver mais</a>
@@ -163,7 +163,7 @@ const controller = function ($scope, $timeout, mbSidemenuService, hotkeys) {
163
163
 
164
164
  /* Caso a search string seja maior que zero */
165
165
  if (searchString.length > 0) {
166
- const result = [];
166
+ let result = [];
167
167
  /* Para cada item do conteudo */
168
168
  $scope.data.forEach((element) => {
169
169
  const elementTmp = element;
@@ -188,6 +188,11 @@ const controller = function ($scope, $timeout, mbSidemenuService, hotkeys) {
188
188
  result.push(elementTmp);
189
189
  }
190
190
  });
191
+
192
+ result = result.filter((subModule, index) =>
193
+ result.findIndex(subModule2 => subModule.name == subModule2.name) == index
194
+ )
195
+
191
196
  $scope.result = makeAutocompleteObject(result);
192
197
  $scope.selected = [0, 0];
193
198
  }