diff options
Diffstat (limited to 'public')
-rw-r--r-- | public/css/index.css | 3 | ||||
-rw-r--r-- | public/js/index.js | 13 | ||||
-rw-r--r-- | public/less/_repository.less | 6 |
3 files changed, 22 insertions, 0 deletions
diff --git a/public/css/index.css b/public/css/index.css index b37fede0cb..8e43a7e166 100644 --- a/public/css/index.css +++ b/public/css/index.css @@ -1202,6 +1202,9 @@ footer .ui.language .menu { margin-top: -1px; font-size: 15px; } +.repository .tabs .navbar { + justify-content: initial; +} .repository .navbar { display: flex; justify-content: space-between; diff --git a/public/js/index.js b/public/js/index.js index f6da4125be..d79b94b92c 100644 --- a/public/js/index.js +++ b/public/js/index.js @@ -657,6 +657,18 @@ function initRepositoryCollaboration() { }); } +function initTeamSettings() { + // Change team access mode + $('.organization.new.team input[name=permission]').change(function () { + var val = $('input[name=permission]:checked', '.organization.new.team').val() + if (val === 'admin') { + $('.organization.new.team .team-units').hide(); + } else { + $('.organization.new.team .team-units').show(); + } + }); +} + function initWikiForm() { var $editArea = $('.repository.wiki textarea#edit_area'); if ($editArea.length > 0) { @@ -1557,6 +1569,7 @@ $(document).ready(function () { initAdmin(); initCodeView(); initDashboardSearch(); + initTeamSettings(); // Repo clone url. if ($('#repo-clone-url').length > 0) { diff --git a/public/less/_repository.less b/public/less/_repository.less index 57b73ea9ac..a81d92871d 100644 --- a/public/less/_repository.less +++ b/public/less/_repository.less @@ -36,6 +36,12 @@ } } + .tabs { + .navbar { + justify-content: initial; + } + } + .navbar { display: flex; justify-content: space-between; |