Skip to content
This repository has been archived by the owner on May 29, 2024. It is now read-only.

Commit

Permalink
fix: disable welcome app when disable by user
Browse files Browse the repository at this point in the history
fixes: #960
  • Loading branch information
edewit authored and quintesse committed Aug 16, 2019
1 parent e3a7959 commit cda5c81
Show file tree
Hide file tree
Showing 2 changed files with 73 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,11 @@ export function buildDownloadNewAppPayload(app: NewApp) {
if (parts.length > 1) {
parts = [
...parts.map(p => ({...p, subFolderName: p.category})),
{category: 'support', subFolderName: 'support', capabilities: [{module: 'capability-welcome'}]}
{category: 'support', subFolderName: 'support', capabilities: [
app.welcomeApp.selected ? { module: 'capability-welcome' } : {}
]}
];
} else {
} else if (app.welcomeApp.selected) {
parts[0].capabilities.push({module: 'capability-welcome'});
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,80 @@ exports[`<ClusterPicker /> should display "No Active Clusters Found" when cluste
<a
aria-disabled="false"
class="pf-c-button pf-m-primary"
href="https://manage.openshift.com/"
target="_blank"
>
activate a cluster
</a>
</div>
<article
class="pf-c-card"
>
<div
class="pf-c-card__header pf-c-title pf-m-md"
>
Or add your cluster url and token below
</div>
<div
class="pf-c-card__body"
>
<form
class="pf-c-form"
novalidate=""
>
<div
class="pf-c-form__group"
>
<label
class="pf-c-form__label"
for="cluster-url-picker"
>
<span
class="pf-c-form__label-text"
>
Cluster API Url
</span>
</label>
<input
aria-invalid="false"
aria-label="Cluster url"
class="pf-c-form-control"
id="cluster-url-picker"
name="cluster-url-picker"
placeholder="Type the cluster api url"
required=""
type="text"
value=""
/>
</div>
<div
class="pf-c-form__group"
>
<label
class="pf-c-form__label"
for="cluster-token-picker"
>
<span
class="pf-c-form__label-text"
>
Cluster Token
</span>
</label>
<input
aria-invalid="false"
aria-label="Cluster token"
class="pf-c-form-control"
id="cluster-token-picker"
name="cluster-token-picker"
placeholder="Type the api token"
required=""
type="text"
value=""
/>
</div>
</form>
</div>
</article>
</DocumentFragment>
`;

Expand Down

0 comments on commit cda5c81

Please sign in to comment.