Prevent change visibility of a repo in the UI when disallowed by billing plan
Fixes #486 - Extracts out the check plan logic and UI from the new repo page into its own directive (repo-count-checker) - Adds the new directive to the repo settings panel - Some additional UI improvements for the repo settings panel
This commit is contained in:
parent
fbfe7fdb54
commit
2739cf47ba
8 changed files with 173 additions and 109 deletions
|
@ -29,6 +29,18 @@
|
|||
margin-top: -7px !important;
|
||||
}
|
||||
|
||||
.repo-panel-settings-element .repo-count-checker {
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
.repo-panel-settings-element .co-alert {
|
||||
margin-bottom: 0px;
|
||||
}
|
||||
|
||||
.repo-panel-settings-element .panel-body {
|
||||
border-bottom: 0px;
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
.repo-panel-settings-element .delete-btn {
|
||||
float: none;
|
||||
|
|
26
static/css/directives/ui/repo-count-checker.css
Normal file
26
static/css/directives/ui/repo-count-checker.css
Normal file
|
@ -0,0 +1,26 @@
|
|||
.repo-count-checker .btn {
|
||||
margin-top: 0px !important;
|
||||
}
|
||||
|
||||
.repo-count-checker .co-alert {
|
||||
margin-bottom: 6px !important;
|
||||
padding-right: 120px;
|
||||
}
|
||||
|
||||
.repo-count-checker .co-alert .btn {
|
||||
position: absolute;
|
||||
top: 10px;
|
||||
right: 10px;
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
.repo-count-checker .co-alert {
|
||||
padding-right: 10px;
|
||||
}
|
||||
|
||||
.repo-count-checker .co-alert .btn {
|
||||
position: relative;
|
||||
margin-top: 20px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
}
|
Reference in a new issue