Commit 18896ab2 authored by Ivanq's avatar Ivanq

Description cannot be changed after publishing

parent 024605f7
......@@ -79,7 +79,7 @@
<div class="entry">
<div class="entry-title">Indexation</div>
<div class="entry-description">Being published once, the repository cannot be removed from Repository Index.</div>
<div class="entry-description">Being published once, the repository cannot be removed from Repository Index and description cannot be changed.</div>
<div class="entry-value">
<a id="indexation_index" class="button">Publish to Repository Index</a>
</div>
......
......@@ -6,6 +6,9 @@ let indexation;
function showIndexation() {
let index = document.getElementById("indexation_index");
document.getElementById("description").classList.toggle("input-disabled", indexation);
document.getElementById("description_save").classList.toggle("input-disabled", indexation);
index.classList.toggle("button-disabled", indexation & 2);
index.innerHTML = indexation & 2 ? "The repository was published to Repository Index" : "Publish to Repository Index";
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment