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
3a3f4a34
Commit
3a3f4a34
authored
May 11, 2018
by
Dennis Tang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avoid reuse of translation method
parent
08cb13a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
app/assets/javascripts/projects/gke_cluster_dropdowns/store/actions.js
...vascripts/projects/gke_cluster_dropdowns/store/actions.js
+7
-4
No files found.
app/assets/javascripts/projects/gke_cluster_dropdowns/store/actions.js
View file @
3a3f4a34
...
...
@@ -18,7 +18,7 @@ export const setMachineType = ({ commit }, selectedMachineType) => {
const
displayError
=
(
resp
,
errorMessage
)
=>
{
if
(
resp
.
result
&&
resp
.
result
.
error
)
{
Flash
(
sprintf
(
s__
(
errorMessage
)
,
{
error
:
resp
.
result
.
error
.
message
}));
Flash
(
sprintf
(
errorMessage
,
{
error
:
resp
.
result
.
error
.
message
}));
}
};
...
...
@@ -49,8 +49,9 @@ export const getProjects = ({ commit }) =>
commit
,
mutation
:
types
.
SET_PROJECTS
,
payloadKey
:
'
projects
'
,
errorMessage
:
errorMessage
:
s__
(
'
ClusterIntegration|An error occured while trying to fetch your projects: %{error}
'
,
),
});
export
const
getZones
=
({
commit
,
state
})
=>
...
...
@@ -62,8 +63,9 @@ export const getZones = ({ commit, state }) =>
commit
,
mutation
:
types
.
SET_ZONES
,
payloadKey
:
'
items
'
,
errorMessage
:
errorMessage
:
s__
(
'
ClusterIntegration|An error occured while trying to fetch project zones: %{error}
'
,
),
});
export
const
getMachineTypes
=
({
commit
,
state
})
=>
...
...
@@ -76,8 +78,9 @@ export const getMachineTypes = ({ commit, state }) =>
commit
,
mutation
:
types
.
SET_MACHINE_TYPES
,
payloadKey
:
'
items
'
,
errorMessage
:
errorMessage
:
s__
(
'
ClusterIntegration|An error occured while trying to fetch zone machine types: %{error}
'
,
),
});
// prevent babel-plugin-rewire from generating an invalid default during karma tests
...
...
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