Skip to content

Commit

Permalink
Fixed FELIX-3695 : When bundle filter doesn't match, the tool bars ar…
Browse files Browse the repository at this point in the history
  • Loading branch information
Valentin Valchev committed Mar 10, 2015
1 parent 318c2cb commit 7032d35
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ bundles.filter.clear=Изчистване филтър
bundles.filter.help=Низ или регулярен израз, който се съдържа в ID-то, името, символното име или версията на бъндъла.
bundles.filter.ldap=Филтриране всичко
bundles.filter.ldap.tip=Когато натиснете този бутон се прилага допълнително филтриране, спрямо *всички* хедъри на бундълите. Очаква се изразът в полето да бъде валиден OSGi LDAP филтър.
bundles.filter.no_match=Няма бъндъли, които да отговарят на зададените критерии
# states
bundles.state.1=Деинсталиран
bundles.state.2=Инсталиран
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ bundles.filter.clear=Clear Filter
bundles.filter.help=A string or RegExp expression which is matched againse bundle id, name, symbolic name or version. In case 'Filter All' is used, the value must be a valid LDAP string.
bundles.filter.ldap=Filter All
bundles.filter.ldap.tip=When clicked, a server-side matching is performed agains *all* bundle manifest headers. The expression is expected to be a valid OSGi Filter
bundles.filter.no_match=There are no bundles matching the current filter
# states
bundles.state.1=Uninstalled
bundles.state.2=Installed
Expand Down
4 changes: 4 additions & 0 deletions webconsole/src/main/resources/res/ui/bundles.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ function renderData( eventData, filter ) {
bundlesTable.trigger('sorton', [cv]);
}

if (bundlesBody.find('tr').size() == 0) {
bundlesBody.html('<tr><td colspan="6">' + i18n.filterNoMatch + '</td></tr>');
}

// show dialog on error
if (eventData.error) bundleOpError.dialog('open').find('pre').text(eventData.error)
}
Expand Down
1 change: 1 addition & 0 deletions webconsole/src/main/resources/templates/bundles.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
statlineResolved : '${bundles.statline.resolved}',
statlineInstalled : '${bundles.statline.installed}',
install_update : '${bundles.install_or_update}',
filterNoMatch : '${bundles.filter.no_match}',
state : {
1 : '${bundles.state.1}', // uninstalled
2 : '${bundles.state.2}', // installed
Expand Down

0 comments on commit 7032d35

Please sign in to comment.