#2305 frontend: disable Edit button in the project settings when chroot unchecked
Merged 2 years ago by frostyx. Opened 2 years ago by nikromen.
copr/ nikromen/copr hide-edit-button  into  main

@@ -70,7 +70,7 @@ 

              {{ ch }}

              {{ ch.label }}

              {% set chrootname = ch.label.text %}

-             {% if copr and ch.data %}

+             {% if copr and ch.data and ch.checked %}

                <a style="margin-left:20px" class="btn btn-xs btn-default" href="{{ copr_url('coprs_ns.chroot_edit', copr, chrootname = chrootname)}}">

                  <span class="pficon pficon-edit"> Edit </span>

                </a>

(this is waaay more trivial compared to the dynamic solution with javascript :D)

Fix #2297

Build succeeded.

rebased onto 19a8609

2 years ago

rebased onto 19a8609

2 years ago

Build succeeded.

Pull-Request has been merged by frostyx

2 years ago