Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
feudal
feudalWebpage
Commits
43083d30
Commit
43083d30
authored
Jan 23, 2020
by
Lukas Burgey
Browse files
Make state tooltips and descriptions consistent
parent
a7db97a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/app/state/state.component.ts
View file @
43083d30
...
...
@@ -39,51 +39,62 @@ export class StateComponent implements OnInit {
(
state
:
DeploymentState
)
=>
{
switch
(
state
.
state
)
{
case
'
not_deployed
'
:
this
.
stateDescription
=
`
The
credentials are not deployed for
the service
${
this
.
service
.
name
}
.`
;
this
.
stateDescription
=
`
Your
credentials are not deployed for
${
this
.
service
.
name
}
.`
;
this
.
buttonActive
=
false
;
break
;
case
'
deployment_pending
'
:
this
.
stateDescription
=
`Waiting for the deployment of
the
credentials to
the site
${
this
.
service
.
site
.
name
}
.`
;
this
.
stateDescription
=
`Waiting for the deployment of
your
credentials to
${
this
.
service
.
site
.
name
}
.`
;
this
.
buttonActive
=
false
;
break
;
case
'
removal_pending
'
:
this
.
stateDescription
=
`Waiting for the removal of
the
credentials from
the site
${
this
.
service
.
site
.
name
}
.`
;
this
.
stateDescription
=
`Waiting for the removal of
your
credentials from
${
this
.
service
.
site
.
name
}
.`
;
this
.
buttonActive
=
false
;
break
;
case
'
deployed
'
:
this
.
stateDescription
=
`The credentials are deployed for the service
${
this
.
service
.
name
}
. Click to see details.`
;
this
.
buttonActive
=
true
;
this
.
buttonColor
=
'
primary
'
;
this
.
buttonText
=
'
View credentials
'
;
this
.
buttonTooltip
=
this
.
buttonText
;
this
.
buttonText
=
'
View Credentials
'
;
this
.
buttonTooltip
=
'
View detailed information about the deployed credentials
'
;
this
.
stateDescription
=
`
The credentials are deployed for this service
${
this
.
service
.
name
}
.
Click "
${
this
.
buttonText
}
" see details on your deployed ssh keys and credentials.
`
;
break
;
case
'
questionnaire
'
:
this
.
stateDescription
=
`Site
${
this
.
service
.
site
.
name
}
needs more data to deploy the keys. Please click to submit the data.`
;
this
.
buttonActive
=
true
;
this
.
buttonColor
=
'
warn
'
;
this
.
buttonText
=
'
Submit Data
'
;
this
.
buttonTooltip
=
this
.
buttonText
;
this
.
buttonTooltip
=
'
Submit missing data
'
;
this
.
stateDescription
=
`
More data is needed to deploy your credentials.
Please click "
${
this
.
buttonText
}
" to submit the missing data.
`
;
break
;
case
'
failed
'
:
this
.
stateDescription
=
`Site
${
this
.
service
.
site
.
name
}
failed to deploy the credentials.
The deployment will be retried. Click for details.`
;
this
.
buttonActive
=
true
;
this
.
buttonColor
=
'
warn
'
;
this
.
buttonText
=
'
S
ubmit Data
'
;
this
.
buttonText
=
'
S
how Error
'
;
this
.
buttonTooltip
=
this
.
buttonText
;
this
.
stateDescription
=
`
The deployment of your credentials failed, but will be tried again.
Please click "
${
this
.
buttonText
}
" for more details concerning this error.
`
;
break
;
case
'
rejected
'
:
this
.
stateDescription
=
`Site
${
this
.
service
.
site
.
name
}
rejected the deployment of the credentials. Click for details.`
;
this
.
buttonActive
=
true
;
this
.
buttonColor
=
'
warn
'
;
this
.
buttonText
=
'
S
ubmit Data
'
;
this
.
buttonText
=
'
S
how message
'
;
this
.
buttonTooltip
=
this
.
buttonText
;
this
.
stateDescription
=
`
The deployment of your credentials was rejected.
Please click "
${
this
.
buttonText
}
" to show more details.
`
;
break
;
default
:
this
.
stateDescription
=
'
Access to this service was never requested.
'
;
this
.
stateDescription
=
''
;
this
.
buttonActive
=
false
;
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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