Skip to content

Commit 663f5be

Browse files
authored
fix(front): hide refresh button in CE (#124)
1 parent 4c5478c commit 663f5be

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

front/lib/front_web/templates/people/collaborators.html.eex

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,13 @@
6060
<% end %>
6161
<p>Or add them from the collaborators list below</p>
6262
</div>
63-
64-
<div class="flex-shrink-0 pl3-m mb3 mb0-m tr-m">
65-
<button class="btn btn-secondary" refresh-gh-collaborators>
66-
Refresh
67-
</button>
68-
</div>
63+
<%= if FeatureProvider.feature_enabled?(:ui_show_refresh_collaborators, param: @conn.assigns[:organization_id]) do %>
64+
<div class="flex-shrink-0 pl3-m mb3 mb0-m tr-m">
65+
<button class="btn btn-secondary" refresh-gh-collaborators>
66+
Refresh
67+
</button>
68+
</div>
69+
<% end %>
6970
</div>
7071

7172
<%= if Enum.any?(@collaborators) do %>

front/lib/front_web/templates/people/organization.html.eex

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010
<p class="mb0">How to <a href="https://docs.semaphoreci.com/account-management/organizations/#transferring-ownership-of-an-organization" target="_blank" rel="noopener">Transfer the ownership</a>?</p>
1111
</div>
1212
<div class="flex items-center">
13-
<div class="app-sync-people" data-config="<%= Poison.encode!(sync_people_config(@conn)) %>"></div>
13+
<%= if FeatureProvider.feature_enabled?(:ui_show_refresh_collaborators, param: @org_id) do %>
14+
<div class="app-sync-people" data-config="<%= Poison.encode!(sync_people_config(@conn)) %>"></div>
15+
<% end %>
1416
<%= link to: roles_path(@conn, :index), class: "pointer flex items-center btn-secondary btn nowrap ml2" do %>
1517
<span class="material-symbols-outlined mr1">open_in_new</span>
1618
<span><%= roles_action_message() %> Roles</span>

0 commit comments

Comments
 (0)