bastion 5.1.0 → 5.1.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5a344c11b18ab340db057d7fedcb2ac951784ea2
|
4
|
+
data.tar.gz: 65d23067a0f9dc27344f583c6ea6f1a66ccea364
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2f433b5f887b3e066d5b7be20cddf453b86d902c9dd435022708285d2a7918b8152bc6d88c9b422b5de359be749eaebd1054fb4eaa5d733d1d1af7030bcc1f59
|
7
|
+
data.tar.gz: e36d5a54c2727315a9e60d71b6543d717b53d4808d8cd6148602fa1cd98c09270043cabab52030dc726cd132edaa31927af815401351b3e4ecc282ad5ba93b60
|
@@ -30,6 +30,18 @@
|
|
30
30
|
scope.table = TableCache.getTable(getTableName(listUrl));
|
31
31
|
}
|
32
32
|
|
33
|
+
scope.showSwitcher = function () {
|
34
|
+
var tableHasRows, isNewPage;
|
35
|
+
|
36
|
+
// Must have at least two items to switch between them
|
37
|
+
tableHasRows = scope.table && scope.table.rows.length > 1;
|
38
|
+
|
39
|
+
// Don't show the switcher when creating a new product
|
40
|
+
isNewPage = /new$/.test($location.path());
|
41
|
+
|
42
|
+
return tableHasRows && !isNewPage;
|
43
|
+
};
|
44
|
+
|
33
45
|
scope.changeResource = function (id) {
|
34
46
|
var currentUrl, nextUrl;
|
35
47
|
currentUrl = $location.path();
|
@@ -1,5 +1,5 @@
|
|
1
|
-
<span uib-dropdown ng-show="
|
2
|
-
<a
|
1
|
+
<span uib-dropdown ng-show="showSwitcher()" on-toggle="toggled(open)">
|
2
|
+
<a uib-dropdown-toggle>
|
3
3
|
<i class="fa fa-exchange"></i>
|
4
4
|
</a>
|
5
5
|
<ul class="dropdown-menu" uib-dropdown-menu>
|
data/lib/bastion/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bastion
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.1.
|
4
|
+
version: 5.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric D Helms
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-
|
12
|
+
date: 2017-10-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: angular-rails-templates
|
@@ -1763,48 +1763,48 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
1763
1763
|
version: '0'
|
1764
1764
|
requirements: []
|
1765
1765
|
rubyforge_project:
|
1766
|
-
rubygems_version: 2.6
|
1766
|
+
rubygems_version: 2.4.6
|
1767
1767
|
signing_key:
|
1768
1768
|
specification_version: 4
|
1769
1769
|
summary: UI library of AngularJS based components for Foreman
|
1770
1770
|
test_files:
|
1771
|
+
- test/features/bst-feature-flag.directive.test.js
|
1772
|
+
- test/features/feature-flag.service.test.js
|
1771
1773
|
- test/auth/authorization.service.test.js
|
1772
|
-
- test/bastion/test-constants.js
|
1773
|
-
- test/components/bst-alert.directive.test.js
|
1774
|
-
- test/components/bst-alerts.directive.test.js
|
1775
|
-
- test/components/bst-bookmark.directive.test.js
|
1776
|
-
- test/components/bst-bookmark.factory.test.js
|
1777
|
-
- test/components/bst-dropdown.directive.test.js
|
1778
|
-
- test/components/bst-edit.directive.test.js
|
1779
|
-
- test/components/bst-flyout.directive.test.js
|
1780
|
-
- test/components/bst-form-buttons.directive.test.js
|
1781
1774
|
- test/components/bst-form-group.directive.test.js
|
1782
|
-
- test/components/bst-
|
1775
|
+
- test/components/bst-table.directive.test.js
|
1776
|
+
- test/components/page-title.directive.test.js
|
1783
1777
|
- test/components/bst-menu.directive.test.js
|
1784
|
-
- test/components/bst-modal.directive.test.js
|
1785
1778
|
- test/components/bst-resource-switcher.test.js
|
1786
|
-
- test/components/bst-
|
1779
|
+
- test/components/bst-alerts.directive.test.js
|
1780
|
+
- test/components/nutupane.factory.test.js
|
1781
|
+
- test/components/path-selector.directive.test.js
|
1787
1782
|
- test/components/formatters/array-to-string.filter.test.js
|
1788
|
-
- test/components/formatters/
|
1783
|
+
- test/components/formatters/unlimited-filter.filter.test.js
|
1789
1784
|
- test/components/formatters/capitalize.filter.test.js
|
1790
1785
|
- test/components/formatters/key-value-to-string.filter.test.js
|
1791
|
-
- test/components/formatters/
|
1792
|
-
- test/components/global-notification.service.test.js
|
1793
|
-
- test/components/nutupane.factory.test.js
|
1794
|
-
- test/components/page-title.directive.test.js
|
1786
|
+
- test/components/formatters/boolean-to-yes-no.filter.test.js
|
1795
1787
|
- test/components/page-title.service.test.js
|
1796
|
-
- test/components/
|
1788
|
+
- test/components/bst-bookmark.factory.test.js
|
1789
|
+
- test/components/bst-alert.directive.test.js
|
1790
|
+
- test/components/bst-bookmark.directive.test.js
|
1791
|
+
- test/components/bst-global-notification.directive.test.js
|
1792
|
+
- test/components/bst-flyout.directive.test.js
|
1797
1793
|
- test/components/table-cache.service.test.js
|
1794
|
+
- test/components/bst-dropdown.directive.test.js
|
1798
1795
|
- test/components/typeahead-empty.directive.test.js
|
1799
|
-
- test/
|
1800
|
-
- test/
|
1801
|
-
- test/
|
1802
|
-
- test/
|
1796
|
+
- test/components/bst-form-buttons.directive.test.js
|
1797
|
+
- test/components/global-notification.service.test.js
|
1798
|
+
- test/components/bst-edit.directive.test.js
|
1799
|
+
- test/components/bst-modal.directive.test.js
|
1803
1800
|
- test/routing.module.test.js
|
1804
1801
|
- test/test-mocks.module.js
|
1805
|
-
- test/
|
1806
|
-
- test/
|
1802
|
+
- test/menu/menu-expander.service.test.js
|
1803
|
+
- test/i18n/translate.service.test.js
|
1804
|
+
- test/bastion/test-constants.js
|
1807
1805
|
- test/utils/form-utils.service.test.js
|
1808
|
-
- test/utils/
|
1806
|
+
- test/utils/disable-link.directive.test.js
|
1809
1807
|
- test/utils/stop-event.directive.test.js
|
1808
|
+
- test/utils/bastion-resource.factory.test.js
|
1810
1809
|
- test/utils/urlencode.filter.test.js
|
1810
|
+
- test/utils/round-up.filter.test.js
|