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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
a6359890
Commit
a6359890
authored
Mar 14, 2019
by
Jacques Erasmus
Committed by
Mike Greiling
Mar 14, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show loading spinner for Ingress/Knative IP
Show a loading spinner while Ingress/Knative IP is being assigned
parent
f2379a4a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
15 deletions
+24
-15
app/assets/javascripts/clusters/components/applications.vue
app/assets/javascripts/clusters/components/applications.vue
+14
-8
changelogs/unreleased/49863-ingress-ip-loading-state.yml
changelogs/unreleased/49863-ingress-ip-loading-state.yml
+5
-0
spec/features/projects/clusters/applications_spec.rb
spec/features/projects/clusters/applications_spec.rb
+1
-1
spec/javascripts/clusters/components/applications_spec.js
spec/javascripts/clusters/components/applications_spec.js
+4
-6
No files found.
app/assets/javascripts/clusters/components/applications.vue
View file @
a6359890
<
script
>
import
_
from
'
underscore
'
;
import
helmInstallIllustration
from
'
@gitlab/svgs/dist/illustrations/kubernetes-installation.svg
'
;
import
{
GlLoadingIcon
}
from
'
@gitlab/ui
'
;
import
elasticsearchLogo
from
'
images/cluster_app_logos/elasticsearch.png
'
;
import
gitlabLogo
from
'
images/cluster_app_logos/gitlab.png
'
;
import
helmLogo
from
'
images/cluster_app_logos/helm.png
'
;
...
...
@@ -23,6 +24,7 @@ export default {
applicationRow
,
clipboardButton
,
LoadingButton
,
GlLoadingIcon
,
},
props
:
{
type
:
{
...
...
@@ -296,7 +298,12 @@ export default {
/>
</span>
</div>
<input
v-else
type=
"text"
class=
"form-control js-endpoint"
readonly
value=
"?"
/>
<div
v-else
class=
"input-group"
>
<input
type=
"text"
class=
"form-control js-endpoint"
readonly
/>
<gl-loading-icon
class=
"position-absolute align-self-center ml-2 js-ingress-ip-loading-icon"
/>
</div>
<p
class=
"form-text text-muted"
>
{{
s__
(
`ClusterIntegration|Point a wildcard DNS to this
...
...
@@ -545,13 +552,12 @@ export default {
/>
</span>
</div>
<input
v-else
type=
"text"
class=
"form-control js-knative-endpoint"
readonly
value=
"?"
/>
<div
v-else
class=
"input-group"
>
<input
type=
"text"
class=
"form-control js-endpoint"
readonly
/>
<gl-loading-icon
class=
"position-absolute align-self-center ml-2 js-knative-ip-loading-icon"
/>
</div>
</div>
<p
class=
"form-text text-muted col-12"
>
...
...
changelogs/unreleased/49863-ingress-ip-loading-state.yml
0 → 100644
View file @
a6359890
---
title
:
Show loading spinner while Ingress/Knative IP is being assigned
merge_request
:
25912
author
:
type
:
changed
spec/features/projects/clusters/applications_spec.rb
View file @
a6359890
...
...
@@ -227,7 +227,7 @@ describe 'Clusters Applications', :js do
expect
(
page
).
to
have_css
(
'.js-cluster-application-install-button'
,
exact_text:
'Installed'
)
expect
(
page
).
to
have_css
(
'.js-cluster-application-install-button[disabled]'
)
expect
(
page
).
to
have_selector
(
'.js-no-endpoint-message'
)
expect
(
page
.
find
(
'.js-endpoint'
).
value
).
to
eq
(
'?
'
)
expect
(
page
).
to
have_selector
(
'.js-ingress-ip-loading-icon
'
)
# We receive the external IP address and display
Clusters
::
Cluster
.
last
.
application_ingress
.
update!
(
external_ip:
'192.168.1.100'
)
...
...
spec/javascripts/clusters/components/applications_spec.js
View file @
a6359890
...
...
@@ -141,7 +141,7 @@ describe('Applications', () => {
});
describe
(
'
without ip address
'
,
()
=>
{
it
(
'
renders an input text with a
question mark
and an alert text
'
,
()
=>
{
it
(
'
renders an input text with a
loading icon
and an alert text
'
,
()
=>
{
vm
=
mountComponent
(
Applications
,
{
applications
:
{
...
APPLICATIONS_MOCK_STATE
,
...
...
@@ -152,8 +152,7 @@ describe('Applications', () => {
},
});
expect
(
vm
.
$el
.
querySelector
(
'
.js-endpoint
'
).
value
).
toEqual
(
'
?
'
);
expect
(
vm
.
$el
.
querySelector
(
'
.js-ingress-ip-loading-icon
'
)).
not
.
toBe
(
null
);
expect
(
vm
.
$el
.
querySelector
(
'
.js-no-endpoint-message
'
)).
not
.
toBe
(
null
);
});
});
...
...
@@ -330,7 +329,7 @@ describe('Applications', () => {
});
describe
(
'
without ip address
'
,
()
=>
{
it
(
'
renders an input text with a
question mark
and an alert text
'
,
()
=>
{
it
(
'
renders an input text with a
loading icon
and an alert text
'
,
()
=>
{
vm
=
mountComponent
(
Applications
,
{
applications
:
{
...
APPLICATIONS_MOCK_STATE
,
...
...
@@ -342,8 +341,7 @@ describe('Applications', () => {
},
});
expect
(
vm
.
$el
.
querySelector
(
'
.js-knative-endpoint
'
).
value
).
toEqual
(
'
?
'
);
expect
(
vm
.
$el
.
querySelector
(
'
.js-knative-ip-loading-icon
'
)).
not
.
toBe
(
null
);
expect
(
vm
.
$el
.
querySelector
(
'
.js-no-knative-endpoint-message
'
)).
not
.
toBe
(
null
);
});
});
...
...
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