Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
2f0ec5c0
Commit
2f0ec5c0
authored
May 29, 2019
by
Enrique Alcantara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add updateSuccessful/Failed props to knative app
They are used to indicate when knative domain name has changed
parent
60c58c75
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
37 additions
and
27 deletions
+37
-27
app/assets/javascripts/clusters/components/application_row.vue
...ssets/javascripts/clusters/components/application_row.vue
+33
-27
app/assets/javascripts/clusters/stores/clusters_store.js
app/assets/javascripts/clusters/stores/clusters_store.js
+2
-0
spec/frontend/clusters/stores/clusters_store_spec.js
spec/frontend/clusters/stores/clusters_store_spec.js
+2
-0
No files found.
app/assets/javascripts/clusters/components/application_row.vue
View file @
2f0ec5c0
...
...
@@ -89,6 +89,10 @@ export default {
type
:
Boolean
,
required
:
false
,
},
updateable
:
{
type
:
Boolean
,
default
:
true
,
},
updateSuccessful
:
{
type
:
Boolean
,
required
:
false
,
...
...
@@ -326,36 +330,38 @@ export default {
</ul>
</div>
<div
v-if=
"shouldShowUpgradeDetails"
class=
"form-text text-muted label p-0 js-cluster-application-upgrade-details"
>
{{
versionLabel
}}
<span
v-if=
"updateSuccessful"
>
to
</span>
<gl-link
v-if=
"updateSuccessful"
:href=
"chartRepo"
target=
"_blank"
class=
"js-cluster-application-upgrade-version"
>
chart v
{{
version
}}
</gl-link
<div
v-if=
"updateable"
>
<div
v-if=
"shouldShowUpgradeDetails"
class=
"form-text text-muted label p-0 js-cluster-application-upgrade-details"
>
</div>
{{
versionLabel
}}
<span
v-if=
"updateSuccessful"
>
to
</span>
<div
v-if=
"updateFailed && !isUpgrading"
class=
"bs-callout bs-callout-danger cluster-application-banner mt-2 mb-0 js-cluster-application-upgrade-failure-message"
>
{{
upgradeFailureDescription
}}
<gl-link
v-if=
"updateSuccessful"
:href=
"chartRepo"
target=
"_blank"
class=
"js-cluster-application-upgrade-version"
>
chart v
{{
version
}}
</gl-link
>
</div>
<div
v-if=
"updateFailed && !isUpgrading"
class=
"bs-callout bs-callout-danger cluster-application-banner mt-2 mb-0 js-cluster-application-upgrade-failure-message"
>
{{
upgradeFailureDescription
}}
</div>
<loading-button
v-if=
"upgradeAvailable || updateFailed || isUpgrading"
class=
"btn btn-primary js-cluster-application-upgrade-button mt-2"
:loading=
"isUpgrading"
:disabled=
"isUpgrading"
:label=
"upgradeButtonLabel"
@
click=
"upgradeClicked"
/>
</div>
<loading-button
v-if=
"upgradeAvailable || updateFailed || isUpgrading"
class=
"btn btn-primary js-cluster-application-upgrade-button mt-2"
:loading=
"isUpgrading"
:disabled=
"isUpgrading"
:label=
"upgradeButtonLabel"
@
click=
"upgradeClicked"
/>
</div>
<div
:class=
"
{ 'section-25': showManageButton, 'section-15': !showManageButton }"
...
...
app/assets/javascripts/clusters/stores/clusters_store.js
View file @
2f0ec5c0
...
...
@@ -77,6 +77,8 @@ export default class ClusterStore {
isEditingHostName
:
false
,
externalIp
:
null
,
externalHostname
:
null
,
updateSuccessful
:
false
,
updateFailed
:
false
,
},
},
};
...
...
spec/frontend/clusters/stores/clusters_store_spec.js
View file @
2f0ec5c0
...
...
@@ -133,6 +133,8 @@ describe('Clusters Store', () => {
uninstallable
:
false
,
uninstallSuccessful
:
false
,
uninstallFailed
:
false
,
updateSuccessful
:
false
,
updateFailed
:
false
,
},
cert_manager
:
{
title
:
'
Cert-Manager
'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment