Skip to content

Commit

Permalink
feat(web): display ssh key only if private repo
Browse files Browse the repository at this point in the history
  ref: MANAGER-14955

Signed-off-by: Antony MARION <[email protected]>
  • Loading branch information
Antony MARION committed Aug 29, 2024
1 parent 16ba940 commit 647f1a3
Showing 1 changed file with 18 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,24 @@
<p data-translate="hosting_multisite_git_association_configure_description"></p>

<form class="form-inline" name="$ctrl.gitAssociationForm">
<h3 data-translate="hosting_multisite_git_association_ssh_key"></h3>
<p
data-translate="hosting_multisite_git_association_ssh_key_description"
></p>
<div class="row">
<oui-field
class="col-md-4"
data-label="{{ ::'hosting_multisite_git_association_ssh_key' | translate }}"
>
<oui-clipboard
name="sshKey"
data-model=":: $ctrl.sshKey"
></oui-clipboard>
</oui-field>
<div
data-ng-hide="!$ctrl.model.repositoryUrl || $ctrl.model.repositoryUrl.includes('https')"
>
<h3 data-translate="hosting_multisite_git_association_ssh_key"></h3>
<p
data-translate="hosting_multisite_git_association_ssh_key_description"
></p>
<div class="row">
<oui-field
class="col-md-4"
data-label="{{ ::'hosting_multisite_git_association_ssh_key' | translate }}"
>
<oui-clipboard
name="sshKey"
data-model=":: $ctrl.sshKey"
></oui-clipboard>
</oui-field>
</div>
</div>
<h3 data-translate="hosting_multisite_git_association_configure"></h3>

Expand Down

0 comments on commit 647f1a3

Please sign in to comment.