bullet_train 1.8.3 → 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: 1834b68ad5fd1ed4a9b25356b412798ea807611413fc8698f429c3fe0633004f
4
- data.tar.gz: 3d66538fb5a12ecf84d90be8caed4dede0fecfbf4a3dc68c74eb2037fbe8de8f
3
+ metadata.gz: 846585cc619746eec635b8d57d08429326f374bb85f7341b09eb8346c62ba4c1
4
+ data.tar.gz: 49004dfe696da8451ae83e5fc7bb6755d7bf31862ac376bee9e2d0da4da22897
5
5
  SHA512:
6
- metadata.gz: c0e7d30d4cc411a2b4596077bdcd0a7904012498dfe9347f56efd7215196dfb0479ec22826aefdb4fd3c8f5f92dd6f8242d26fefc951e57e5875f674d7159736
7
- data.tar.gz: 0d18110605d68041079880e67600e4e3e1c2e0eade4e5743b4db9695e5cad6cc5c9eca8db0b6a0770484bed25c84e9d6ff07de312208129f3b0c6a47a3e992f8
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.3"
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.3
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-14 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