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
3af946af
Commit
3af946af
authored
6 years ago
by
Mike Greiling
Committed by
Kamil Trzciński
6 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Define cluster types in a constant within frontend
parent
c561371c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
app/assets/javascripts/clusters/components/applications.vue
app/assets/javascripts/clusters/components/applications.vue
+3
-3
app/assets/javascripts/clusters/constants.js
app/assets/javascripts/clusters/constants.js
+7
-0
No files found.
app/assets/javascripts/clusters/components/applications.vue
View file @
3af946af
...
...
@@ -13,7 +13,7 @@ import prometheusLogo from 'images/cluster_app_logos/prometheus.png';
import
{
s__
,
sprintf
}
from
'
../../locale
'
;
import
applicationRow
from
'
./application_row.vue
'
;
import
clipboardButton
from
'
../../vue_shared/components/clipboard_button.vue
'
;
import
{
APPLICATION_STATUS
,
INGRESS
}
from
'
../constants
'
;
import
{
CLUSTER_TYPE
,
APPLICATION_STATUS
,
INGRESS
}
from
'
../constants
'
;
export
default
{
components
:
{
...
...
@@ -24,7 +24,7 @@ export default {
type
:
{
type
:
String
,
required
:
false
,
default
:
'
project_type
'
,
default
:
CLUSTER_TYPE
.
PROJECT
,
},
applications
:
{
type
:
Object
,
...
...
@@ -65,7 +65,7 @@ export default {
}),
computed
:
{
isProjectCluster
()
{
return
this
.
type
===
'
project_type
'
;
return
this
.
type
===
CLUSTER_TYPE
.
PROJECT
;
},
helmInstalled
()
{
return
(
...
...
This diff is collapsed.
Click to expand it.
app/assets/javascripts/clusters/constants.js
View file @
3af946af
// These need to match the enum found in app/models/clusters/cluster.rb
export
const
CLUSTER_TYPE
=
{
INSTANCE
:
'
instance_type
'
,
GROUP
:
'
group_type
'
,
PROJECT
:
'
project_type
'
,
};
// These need to match what is returned from the server
export
const
APPLICATION_STATUS
=
{
NOT_INSTALLABLE
:
'
not_installable
'
,
...
...
This diff is collapsed.
Click to expand it.
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