bullet_train 1.8.4 → 1.8.5

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
  SHA256:
3
- metadata.gz: 164b66fd2f81d78d642f76ec8f0bc169663794da68b372230bc7dccc19a0bfb2
4
- data.tar.gz: fc13a70d0c55de1916e581f3a65669d28fa895b3de33ca0b0b139ad7c8ea9458
3
+ metadata.gz: 846585cc619746eec635b8d57d08429326f374bb85f7341b09eb8346c62ba4c1
4
+ data.tar.gz: 49004dfe696da8451ae83e5fc7bb6755d7bf31862ac376bee9e2d0da4da22897
5
5
  SHA512:
6
- metadata.gz: 456aa7d32035fbbf5c8022aaf503710ef9dacaef70a345ff7bbfebdaf5e90720e5e34336ed1b63a978a3c50ac4fb0cc100435506e6bf98cb67a72a400ec075ac
7
- data.tar.gz: 8370ce7c7e198fe4bb474fc4cb72bd4116d7d9bf7a8293e428d74356afd3f09809eba2a474860012459a971eefdaa172c3aee53f1c0abd1bd8d783bcdc5953e8
6
+ metadata.gz: cc750d38d00712093cb880dfee387ef6ef6d4c47311cff7d7be16c5c84954a3c9c270bb856fae3296ae54c70d2f0374b45f65fb85212ad5cd007113140b38f2d
7
+ data.tar.gz: ea4839a86aba5af3b9568a872e79c17918d93d6f6dd55b8452d6af9dbc0953374ba53b53d45b322cc9c9992c1276d225736ea4398b5dcff9225b007f894fb5fd
@@ -41,6 +41,7 @@ export default class extends Controller {
41
41
  }
42
42
 
43
43
  updateToggle() {
44
+ if (!this.hasToggleCheckboxTarget) { return }
44
45
  let checkbox = this.toggleCheckboxTarget
45
46
  let useAlternateLabel = false
46
47
 
@@ -30,7 +30,9 @@
30
30
 
31
31
  <% unless hide_actions %>
32
32
  <% box.actions do %>
33
- <%= link_to t('invitations.buttons.new'), new_account_team_invitation_path(@team, cancel_path: account_team_memberships_path(@team)), class: "#{first_button_primary}" %>
33
+ <% if can? :create, Invitation.new(team: @team) %>
34
+ <%= link_to t('invitations.buttons.new'), new_account_team_invitation_path(@team, cancel_path: account_team_memberships_path(@team)), class: "#{first_button_primary}" %>
35
+ <% end %>
34
36
  <%= link_to t('global.buttons.back'), [:account, context], class: "#{first_button_primary} back" unless hide_back %>
35
37
  <% end %>
36
38
  <% end %>
@@ -1,3 +1,3 @@
1
1
  module BulletTrain
2
- VERSION = "1.8.4"
2
+ VERSION = "1.8.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bullet_train
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.4
4
+ version: 1.8.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Culver
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-11-15 00:00:00.000000000 Z
11
+ date: 2024-11-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: standard