Skip to content

Commit

Permalink
Show chart version picker even if name/ns are fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
vincent99 committed Aug 27, 2020
1 parent f035bdc commit b854348
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions components/form/NameNsDescription.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ export default {
type: Boolean,
default: false,
},
nameNsHidden: {
type: Boolean,
default: false,
},
descriptionPlaceholder: {
type: String,
default: 'Any text you want that better describes this resource'
Expand Down Expand Up @@ -151,7 +155,7 @@ export default {
},
colSpan() {
const cols = 2 + this.extraColumns.length;
const cols = (this.nameNsHidden ? 0 : 1) + 1 + this.extraColumns.length;
const span = 12 / cols;
return `span-${ span }`;
Expand Down Expand Up @@ -212,7 +216,7 @@ export default {
<template>
<div>
<div class="row mb-20">
<div :class="{col: true, [colSpan]: true}">
<div v-show="!nameNsHidden" :class="{col: true, [colSpan]: true}">
<slot name="namespace">
<InputWithSelect
v-if="namespaced"
Expand Down
2 changes: 1 addition & 1 deletion pages/c/_cluster/apps/install.vue
Original file line number Diff line number Diff line change
Expand Up @@ -594,10 +594,10 @@ export default {
</div>
<NameNsDescription
v-else
v-show="showNameEditor"
v-model="value"
:mode="mode"
:name-disabled="nameDisabled"
:name-ns-hidden="!showNameEditor"
:force-namespace="forceNamespace"
:extra-columns="showVersions ? ['versions'] : []"
>
Expand Down

0 comments on commit b854348

Please sign in to comment.