Skip to content

Commit 2262445

Browse files
committed
Don't offer to describe historical revisions
1 parent 0c486e7 commit 2262445

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

pkg/dashboard/static/details-view.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ function showResources(namespace, chart, revision) {
172172
//reportError("Failed to get list of resources")
173173
}).done(function (data) {
174174
const badge = $("<span class='badge me-2 fw-normal'></span>").text(data.status.phase);
175-
if (["Available", "Active", "Established", "Bound"].includes(data.status.phase)) {
175+
if (["Available", "Active", "Established", "Bound", "Ready"].includes(data.status.phase)) {
176176
badge.addClass("bg-success text-dark")
177177
} else if (["Exists"].includes(data.status.phase)) {
178178
badge.addClass("bg-success text-dark bg-opacity-50")
@@ -186,7 +186,7 @@ function showResources(namespace, chart, revision) {
186186
statusBlock.empty().append(badge).attr("title", data.status.phase)
187187
resBlock.find(".res-statusmsg").html("<span class='text-muted small'>" + (data.status.message ? data.status.message : '') + "</span>")
188188

189-
if (badge.text() !== "NotFound") {
189+
if (badge.text() !== "NotFound" && revision == $("#specRev").data("last-rev")) {
190190
resBlock.find(".res-actions")
191191

192192
const btn = $("<button class=\"btn btn-sm btn-white border-secondary\">Describe</button>");

pkg/dashboard/static/revisions-view.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,14 @@ function fillChartHistory(data, namespace, name) {
4848

4949
if (elm.description.startsWith("Rollback to ")) {
5050
//rev.find(".rev-status").append(" <span class='small fw-normal text-lowercase'>(rollback)</span>")
51-
rev.find(".rev-status").append(" <i class='bi-arrow-counterclockwise text-muted' title='"+elm.description+"'></i>")
51+
rev.find(".rev-status").append(" <i class='bi-arrow-counterclockwise text-muted' title='" + elm.description + "'></i>")
5252
}
5353

5454
const nxt = data[x + 1];
5555
if (nxt && isNewerVersion(elm.chart_ver, nxt.chart_ver)) {
56-
rev.find(".rev-changes").html("<span class='strike'>" + nxt.chart_ver + "</span> <i class='text-danger bi-arrow-down-right'></i> " + elm.chart_ver)
56+
rev.find(".rev-changes").html("<span class='strike'>" + nxt.chart_ver + "</span> <i class='bi-arrow-down-right'></i> " + elm.chart_ver)
5757
} else if (nxt && isNewerVersion(nxt.chart_ver, elm.chart_ver)) {
58-
rev.find(".rev-changes").html("<span class='strike'>" + nxt.chart_ver + "</span> <i class='text-success bi-arrow-up-right'></i> " + elm.chart_ver)
58+
rev.find(".rev-changes").html("<span class='strike'>" + nxt.chart_ver + "</span> <i class='bi-arrow-up-right'></i> " + elm.chart_ver)
5959
}
6060

6161
rev.data("elm", elm)

pkg/dashboard/static/styles.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,10 @@ body > .container-fluid {
160160
color: #3B3D45 !important;
161161
}
162162

163+
#topNav .nav-link.text-danger {
164+
color: #FC1683 !important;
165+
}
166+
163167
#topNav .nav-link.active {
164168
background: #EBEFFF;
165169
border-radius: 2px;
@@ -238,6 +242,10 @@ span.link {
238242
text-decoration: underline;
239243
}
240244

245+
#installedList .body .row div {
246+
overflow: hidden;
247+
}
248+
241249
#installedList .rel-name {
242250
padding-left: 5.5rem;
243251
background-image: url("helm-gray-50.svg");

0 commit comments

Comments
 (0)