File tree 5 files changed +8
-8
lines changed
bundles/org.openhab.ui/web/src/pages/settings
5 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -291,7 +291,7 @@ export default {
291
291
},
292
292
loadCounters () {
293
293
if (! this .apiEndpoints ) return
294
- if (this .$store .getters .apiEndpoint (' inbox' )) this .$oh .api .get (' /rest/inbox' ).then ((data ) => { this .inboxCount = data .filter ((e ) => e .flag === ' NEW' ).length .toString () })
294
+ if (this .$store .getters .apiEndpoint (' inbox' )) this .$oh .api .get (' /rest/inbox?includeIgnored=false ' ).then ((data ) => { this .inboxCount = data .filter ((e ) => e .flag === ' NEW' ).length .toString () })
295
295
if (this .$store .getters .apiEndpoint (' things' )) this .$oh .api .get (' /rest/things?staticDataOnly=true' ).then ((data ) => { this .thingsCount = data .length .toString () })
296
296
if (this .$store .getters .apiEndpoint (' items' )) this .$oh .api .get (' /rest/items?staticDataOnly=true' ).then ((data ) => { this .itemsCount = data .length .toString () })
297
297
if (this .$store .getters .apiEndpoint (' ui' )) this .$oh .api .get (' /rest/ui/components/system:sitemap' ).then ((data ) => { this .sitemapsCount = data .length })
Original file line number Diff line number Diff line change 37
37
:link =" binding.id"
38
38
:title =" binding.label"
39
39
:header =" binding.uid"
40
- :badge =" inbox.filter((e) => e.thingTypeUID.split(':')[0] === binding.id && e.flag !== 'IGNORED' ).length || undefined"
40
+ :badge =" inbox.filter((e) => e.thingTypeUID.split(':')[0] === binding.id).length || undefined"
41
41
badge-color =" red"
42
42
:footer =" (binding.description && binding.description.indexOf('<br>') >= 0) ?
43
43
binding.description.split('<br>')[0] : binding.description" />
@@ -88,7 +88,7 @@ export default {
88
88
}
89
89
})
90
90
})
91
- this .$oh .api .get (' /rest/inbox' ).then ((data ) => {
91
+ this .$oh .api .get (' /rest/inbox?includeIgnored=false ' ).then ((data ) => {
92
92
this .inbox = data
93
93
})
94
94
}
Original file line number Diff line number Diff line change @@ -156,9 +156,9 @@ export default {
156
156
loadInbox () {
157
157
if (this .loading ) return
158
158
this .loading = true
159
- this .$oh .api .get (' /rest/inbox' ).then ((data ) => {
159
+ this .$oh .api .get (' /rest/inbox?includeIgnored=false ' ).then ((data ) => {
160
160
this .loading = false
161
- this .scanResults = data .filter ((e ) => e .thingTypeUID .split (' :' )[0 ] === this .bindingId && e . flag !== ' IGNORED ' )
161
+ this .scanResults = data .filter ((e ) => e .thingTypeUID .split (' :' )[0 ] === this .bindingId )
162
162
const searchbar = this .$refs .searchbar .$el .f7Searchbar
163
163
const filterQuery = searchbar .query
164
164
this .initSearchbar = false
Original file line number Diff line number Diff line change @@ -187,7 +187,7 @@ export default {
187
187
methods: {
188
188
load () {
189
189
this .loading = true
190
- this .$oh .api .get (' /rest/inbox' ).then ((data ) => {
190
+ this .$oh .api .get (' /rest/inbox?includeIgnored=true ' ).then ((data ) => {
191
191
this .inbox = data .sort ((a , b ) => a .label .localeCompare (b .label ))
192
192
this .initSearchbar = true
193
193
this .loading = false
Original file line number Diff line number Diff line change @@ -218,7 +218,7 @@ export default {
218
218
}
219
219
},
220
220
inboxCount () {
221
- return this .inbox .filter (( e ) => e . flag !== ' IGNORED ' ). length
221
+ return this .inbox .length
222
222
},
223
223
searchPlaceholder () {
224
224
return window .innerWidth >= 1280 ? ' Search (for advanced search, use the developer sidebar (Shift+Alt+D))' : ' Search'
@@ -244,7 +244,7 @@ export default {
244
244
this .loadInbox ()
245
245
},
246
246
loadInbox () {
247
- this .$oh .api .get (' /rest/inbox' ).then ((data ) => {
247
+ this .$oh .api .get (' /rest/inbox?includeIgnored=false ' ).then ((data ) => {
248
248
this .inbox = data
249
249
})
250
250
},
You can’t perform that action at this time.
0 commit comments