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
cfb36828
Commit
cfb36828
authored
Dec 23, 2020
by
Lukas Eipert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Run prettier on 31 files - 38 of 73
Part of our prettier migration; changing the arrow-parens style.
parent
aa653d5a
Changes
32
Hide whitespace changes
Inline
Side-by-side
Showing
32 changed files
with
51 additions
and
84 deletions
+51
-84
.prettierignore
.prettierignore
+0
-33
ee/app/assets/javascripts/insights/stores/modules/insights/actions.js
...s/javascripts/insights/stores/modules/insights/actions.js
+2
-2
ee/app/assets/javascripts/insights/stores/modules/insights/helpers.js
...s/javascripts/insights/stores/modules/insights/helpers.js
+3
-3
ee/app/assets/javascripts/insights/stores/modules/insights/mutations.js
...javascripts/insights/stores/modules/insights/mutations.js
+1
-1
ee/app/assets/javascripts/integrations/jira/issues_list/components/jira_issues_list_root.vue
...ons/jira/issues_list/components/jira_issues_list_root.vue
+3
-3
ee/app/assets/javascripts/integrations/jira/issues_list/jira_issues_list_bundle.js
.../integrations/jira/issues_list/jira_issues_list_bundle.js
+1
-1
ee/app/assets/javascripts/issues_analytics/components/issues_analytics.vue
...ascripts/issues_analytics/components/issues_analytics.vue
+5
-5
ee/app/assets/javascripts/issues_analytics/filtered_search_issues_analytics.js
...ipts/issues_analytics/filtered_search_issues_analytics.js
+1
-1
ee/app/assets/javascripts/issues_analytics/stores/modules/issue_analytics/actions.js
...ssues_analytics/stores/modules/issue_analytics/actions.js
+2
-2
ee/app/assets/javascripts/issues_analytics/stores/modules/issue_analytics/getters.js
...ssues_analytics/stores/modules/issue_analytics/getters.js
+2
-2
ee/app/assets/javascripts/iterations/components/iteration_report.vue
...ts/javascripts/iterations/components/iteration_report.vue
+1
-1
ee/app/assets/javascripts/iterations/components/iteration_report_tabs.vue
...vascripts/iterations/components/iteration_report_tabs.vue
+2
-2
ee/app/assets/javascripts/iterations/components/iterations.vue
...p/assets/javascripts/iterations/components/iterations.vue
+1
-1
ee/app/assets/javascripts/iterations/components/iterations_list.vue
...ets/javascripts/iterations/components/iterations_list.vue
+1
-1
ee/app/assets/javascripts/ldap_groups_select.js
ee/app/assets/javascripts/ldap_groups_select.js
+1
-1
ee/app/assets/javascripts/license_compliance/store/modules/list/actions.js
...ascripts/license_compliance/store/modules/list/actions.js
+2
-2
ee/app/assets/javascripts/license_compliance/store/modules/list/getters.js
...ascripts/license_compliance/store/modules/list/getters.js
+4
-4
ee/app/assets/javascripts/license_compliance/store/plugins/mediator.js
.../javascripts/license_compliance/store/plugins/mediator.js
+1
-1
ee/app/assets/javascripts/license_compliance/utils/mappers.js
...pp/assets/javascripts/license_compliance/utils/mappers.js
+1
-1
ee/app/assets/javascripts/maintenance_mode_settings/store/index.js
...sets/javascripts/maintenance_mode_settings/store/index.js
+1
-1
ee/app/assets/javascripts/members.js
ee/app/assets/javascripts/members.js
+1
-1
ee/app/assets/javascripts/members/components/table/members_table_cell.vue
...vascripts/members/components/table/members_table_cell.vue
+1
-1
ee/app/assets/javascripts/members/store/state.js
ee/app/assets/javascripts/members/store/state.js
+1
-1
ee/app/assets/javascripts/members/utils.js
ee/app/assets/javascripts/members/utils.js
+1
-1
ee/app/assets/javascripts/on_demand_scans/components/on_demand_scans_form.vue
...ripts/on_demand_scans/components/on_demand_scans_form.vue
+2
-2
ee/app/assets/javascripts/on_demand_scans/components/profile_selector/scanner_profile_selector.vue
.../components/profile_selector/scanner_profile_selector.vue
+2
-2
ee/app/assets/javascripts/on_demand_scans/components/profile_selector/site_profile_selector.vue
...ans/components/profile_selector/site_profile_selector.vue
+2
-2
ee/app/assets/javascripts/oncall_schedules/components/add_edit_schedule_form.vue
...ts/oncall_schedules/components/add_edit_schedule_form.vue
+1
-1
ee/app/assets/javascripts/oncall_schedules/components/add_edit_schedule_modal.vue
...s/oncall_schedules/components/add_edit_schedule_modal.vue
+2
-2
ee/app/assets/javascripts/oncall_schedules/components/delete_schedule_modal.vue
...pts/oncall_schedules/components/delete_schedule_modal.vue
+1
-1
ee/app/assets/javascripts/oncall_schedules/components/oncall_schedule.vue
...vascripts/oncall_schedules/components/oncall_schedule.vue
+1
-1
ee/app/assets/javascripts/oncall_schedules/components/rotations/components/add_rotation_modal.vue
...es/components/rotations/components/add_rotation_modal.vue
+1
-1
No files found.
.prettierignore
View file @
cfb36828
...
...
@@ -1020,39 +1020,6 @@ ee/app/assets/javascripts/analytics/cycle_analytics/store/modules/duration_chart
ee/app/assets/javascripts/analytics/cycle_analytics/store/modules/type_of_work/actions.js
ee/app/assets/javascripts/analytics/cycle_analytics/store/mutations.js
## pedantic-noether
ee/app/assets/javascripts/insights/stores/modules/insights/actions.js
ee/app/assets/javascripts/insights/stores/modules/insights/helpers.js
ee/app/assets/javascripts/insights/stores/modules/insights/mutations.js
ee/app/assets/javascripts/integrations/jira/issues_list/components/jira_issues_list_root.vue
ee/app/assets/javascripts/integrations/jira/issues_list/jira_issues_list_bundle.js
ee/app/assets/javascripts/issues_analytics/components/issues_analytics.vue
ee/app/assets/javascripts/issues_analytics/filtered_search_issues_analytics.js
ee/app/assets/javascripts/issues_analytics/stores/modules/issue_analytics/actions.js
ee/app/assets/javascripts/issues_analytics/stores/modules/issue_analytics/getters.js
ee/app/assets/javascripts/iterations/components/iteration_report.vue
ee/app/assets/javascripts/iterations/components/iteration_report_tabs.vue
ee/app/assets/javascripts/iterations/components/iterations.vue
ee/app/assets/javascripts/iterations/components/iterations_list.vue
ee/app/assets/javascripts/ldap_groups_select.js
ee/app/assets/javascripts/license_compliance/store/modules/list/actions.js
ee/app/assets/javascripts/license_compliance/store/modules/list/getters.js
ee/app/assets/javascripts/license_compliance/store/plugins/mediator.js
ee/app/assets/javascripts/license_compliance/utils/mappers.js
ee/app/assets/javascripts/maintenance_mode_settings/store/index.js
ee/app/assets/javascripts/members.js
ee/app/assets/javascripts/members/components/table/members_table_cell.vue
ee/app/assets/javascripts/members/store/state.js
ee/app/assets/javascripts/members/utils.js
ee/app/assets/javascripts/on_demand_scans/components/on_demand_scans_form.vue
ee/app/assets/javascripts/on_demand_scans/components/profile_selector/scanner_profile_selector.vue
ee/app/assets/javascripts/on_demand_scans/components/profile_selector/site_profile_selector.vue
ee/app/assets/javascripts/oncall_schedules/components/add_edit_schedule_form.vue
ee/app/assets/javascripts/oncall_schedules/components/add_edit_schedule_modal.vue
ee/app/assets/javascripts/oncall_schedules/components/delete_schedule_modal.vue
ee/app/assets/javascripts/oncall_schedules/components/oncall_schedule.vue
ee/app/assets/javascripts/oncall_schedules/components/rotations/components/add_rotation_modal.vue
## gifted-dewdney
ee/app/assets/javascripts/oncall_schedules/utils/cache_updates.js
ee/app/assets/javascripts/oncall_schedules/utils/common_utils.js
...
...
ee/app/assets/javascripts/insights/stores/modules/insights/actions.js
View file @
cfb36828
...
...
@@ -26,7 +26,7 @@ export const fetchConfigData = ({ dispatch }, endpoint) => {
dispatch
(
'
receiveConfigError
'
);
}
})
.
catch
(
error
=>
{
.
catch
(
(
error
)
=>
{
dispatch
(
'
receiveConfigError
'
,
error
.
response
.
data
.
message
);
});
};
...
...
@@ -45,7 +45,7 @@ export const fetchChartData = ({ dispatch }, { endpoint, chart }) =>
data
,
}),
)
.
catch
(
error
=>
{
.
catch
(
(
error
)
=>
{
let
message
=
`
${
__
(
'
There was an error gathering the chart data
'
)}
`
;
if
(
error
.
response
.
data
&&
error
.
response
.
data
.
message
)
{
...
...
ee/app/assets/javascripts/insights/stores/modules/insights/helpers.js
View file @
cfb36828
import
{
CHART_TYPES
}
from
'
ee/insights/constants
'
;
import
{
__
}
from
'
~/locale
'
;
const
getAxisTitle
=
label
=>
{
const
getAxisTitle
=
(
label
)
=>
{
switch
(
label
)
{
case
'
day
'
:
return
__
(
'
Days
'
);
...
...
@@ -41,7 +41,7 @@ export const transformChartDataForGlCharts = (
break
;
case
CHART_TYPES
.
STACKED_BAR
:
formattedData
.
datasets
.
push
(
...
datasets
.
map
(
dataset
=>
({
...
datasets
.
map
(
(
dataset
)
=>
({
name
:
dataset
.
label
,
data
:
dataset
.
data
,
})),
...
...
@@ -49,7 +49,7 @@ export const transformChartDataForGlCharts = (
break
;
case
CHART_TYPES
.
LINE
:
formattedData
.
datasets
.
push
(
...
datasets
.
map
(
dataset
=>
({
...
datasets
.
map
(
(
dataset
)
=>
({
name
:
dataset
.
label
,
data
:
labels
.
map
((
label
,
i
)
=>
[
label
,
dataset
.
data
[
i
]]),
})),
...
...
ee/app/assets/javascripts/insights/stores/modules/insights/mutations.js
View file @
cfb36828
...
...
@@ -11,7 +11,7 @@ export default {
[
types
.
RECEIVE_CONFIG_SUCCESS
](
state
,
data
)
{
state
.
configData
=
pick
(
data
,
Object
.
keys
(
data
).
filter
(
key
=>
data
[
key
].
title
&&
data
[
key
].
charts
),
Object
.
keys
(
data
).
filter
(
(
key
)
=>
data
[
key
].
title
&&
data
[
key
].
charts
),
);
state
.
configLoading
=
false
;
},
...
...
ee/app/assets/javascripts/integrations/jira/issues_list/components/jira_issues_list_root.vue
View file @
cfb36828
...
...
@@ -106,7 +106,7 @@ export default {
search
:
this
.
filterParams
.
search
,
},
})
.
then
(
res
=>
{
.
then
(
(
res
)
=>
{
const
{
headers
,
data
}
=
res
;
this
.
currentPage
=
parseInt
(
headers
[
'
x-page
'
],
10
);
this
.
totalIssues
=
parseInt
(
headers
[
'
x-total
'
],
10
);
...
...
@@ -126,7 +126,7 @@ export default {
});
this
.
issuesCount
[
this
.
currentState
]
=
this
.
issues
.
length
;
})
.
catch
(
error
=>
{
.
catch
(
(
error
)
=>
{
this
.
issuesListLoadFailed
=
true
;
createFlash
({
message
:
__
(
'
An error occurred while loading issues
'
),
...
...
@@ -156,7 +156,7 @@ export default {
const
filterParams
=
{};
const
plainText
=
[];
filters
.
forEach
(
filter
=>
{
filters
.
forEach
(
(
filter
)
=>
{
if
(
filter
.
type
===
'
filtered-search-term
'
&&
filter
.
value
.
data
)
{
plainText
.
push
(
filter
.
value
.
data
);
}
...
...
ee/app/assets/javascripts/integrations/jira/issues_list/jira_issues_list_bundle.js
View file @
cfb36828
...
...
@@ -32,7 +32,7 @@ export default function initJiraIssuesList({ mountPointSelector }) {
initialState
,
initialSortBy
,
},
render
:
createElement
=>
render
:
(
createElement
)
=>
createElement
(
JiraIssuesListApp
,
{
props
:
{
initialFilterParams
,
...
...
ee/app/assets/javascripts/issues_analytics/components/issues_analytics.vue
View file @
cfb36828
...
...
@@ -66,7 +66,7 @@ export default {
const
data
=
[];
if
(
chartHasData
())
{
Object
.
keys
(
chartData
).
forEach
(
key
=>
{
Object
.
keys
(
chartData
).
forEach
(
(
key
)
=>
{
const
date
=
new
Date
(
key
);
const
label
=
`
${
getMonthNames
(
true
)[
date
.
getUTCMonth
()]}
${
date
.
getUTCFullYear
()}
`
;
const
val
=
chartData
[
key
];
...
...
@@ -78,7 +78,7 @@ export default {
return
data
;
},
chartLabels
()
{
return
this
.
data
.
map
(
val
=>
val
[
0
]);
return
this
.
data
.
map
(
(
val
)
=>
val
[
0
]);
},
chartDateRange
()
{
return
`
${
this
.
chartLabels
[
0
]}
-
${
this
.
chartLabels
[
this
.
chartLabels
.
length
-
1
]}
`
;
...
...
@@ -110,7 +110,7 @@ export default {
};
},
series
()
{
return
this
.
data
.
map
(
val
=>
val
[
1
]);
return
this
.
data
.
map
(
(
val
)
=>
val
[
1
]);
},
seriesAverage
()
{
return
engineeringNotation
(
average
(...
this
.
series
),
0
);
...
...
@@ -159,11 +159,11 @@ export default {
return
false
;
}
return
Object
.
values
(
this
.
chartData
).
some
(
val
=>
val
>
0
);
return
Object
.
values
(
this
.
chartData
).
some
(
(
val
)
=>
val
>
0
);
},
setSvg
(
name
)
{
getSvgIconPathContent
(
name
)
.
then
(
path
=>
{
.
then
(
(
path
)
=>
{
if
(
path
)
{
this
.
$set
(
this
.
svgs
,
name
,
`path://
${
path
}
`
);
}
...
...
ee/app/assets/javascripts/issues_analytics/filtered_search_issues_analytics.js
View file @
cfb36828
...
...
@@ -32,7 +32,7 @@ export default class FilteredSearchIssueAnalytics extends FilteredSearchManager
* Updates issue analytics store and window history
* with filter path
*/
updateObject
=
path
=>
{
updateObject
=
(
path
)
=>
{
historyPushState
(
path
);
const
filters
=
urlParamsToObject
(
path
);
...
...
ee/app/assets/javascripts/issues_analytics/stores/modules/issue_analytics/actions.js
View file @
cfb36828
...
...
@@ -16,8 +16,8 @@ export const fetchChartData = ({ commit, dispatch, getters }, endpoint) => {
return
service
.
fetchChartData
(
endpoint
,
getters
.
appliedFilters
)
.
then
(
res
=>
res
.
data
)
.
then
(
data
=>
commit
(
types
.
SET_CHART_DATA
,
data
))
.
then
(
(
res
)
=>
res
.
data
)
.
then
(
(
data
)
=>
commit
(
types
.
SET_CHART_DATA
,
data
))
.
then
(()
=>
dispatch
(
'
setLoadingState
'
,
false
))
.
catch
(()
=>
flash
(
__
(
'
An error occurred while loading chart data
'
)));
};
ee/app/assets/javascripts/issues_analytics/stores/modules/issue_analytics/getters.js
View file @
cfb36828
export
const
hasFilters
=
state
=>
Object
.
keys
(
state
.
filters
).
length
>
0
;
export
const
appliedFilters
=
state
=>
state
.
filters
;
export
const
hasFilters
=
(
state
)
=>
Object
.
keys
(
state
.
filters
).
length
>
0
;
export
const
appliedFilters
=
(
state
)
=>
state
.
filters
;
ee/app/assets/javascripts/iterations/components/iteration_report.vue
View file @
cfb36828
...
...
@@ -92,7 +92,7 @@ export default {
type
:
String
,
required
:
false
,
default
:
Namespace
.
Group
,
validator
:
value
=>
Object
.
values
(
Namespace
).
includes
(
value
),
validator
:
(
value
)
=>
Object
.
values
(
Namespace
).
includes
(
value
),
},
previewMarkdownPath
:
{
type
:
String
,
...
...
ee/app/assets/javascripts/iterations/components/iteration_report_tabs.vue
View file @
cfb36828
...
...
@@ -66,7 +66,7 @@ export default {
update
(
data
)
{
const
{
nodes
:
issues
=
[],
count
,
pageInfo
=
{}
}
=
data
[
this
.
namespaceType
]?.
issues
||
{};
const
list
=
issues
.
map
(
issue
=>
({
const
list
=
issues
.
map
(
(
issue
)
=>
({
...
issue
,
labels
:
issue
?.
labels
?.
nodes
||
[],
assignees
:
issue
?.
assignees
?.
nodes
||
[],
...
...
@@ -96,7 +96,7 @@ export default {
type
:
String
,
required
:
false
,
default
:
Namespace
.
Group
,
validator
:
value
=>
Object
.
values
(
Namespace
).
includes
(
value
),
validator
:
(
value
)
=>
Object
.
values
(
Namespace
).
includes
(
value
),
},
},
data
()
{
...
...
ee/app/assets/javascripts/iterations/components/iterations.vue
View file @
cfb36828
...
...
@@ -31,7 +31,7 @@ export default {
type
:
String
,
required
:
false
,
default
:
Namespace
.
Group
,
validator
:
value
=>
Object
.
values
(
Namespace
).
includes
(
value
),
validator
:
(
value
)
=>
Object
.
values
(
Namespace
).
includes
(
value
),
},
newIterationPath
:
{
type
:
String
,
...
...
ee/app/assets/javascripts/iterations/components/iterations_list.vue
View file @
cfb36828
...
...
@@ -17,7 +17,7 @@ export default {
type
:
String
,
required
:
false
,
default
:
Namespace
.
Group
,
validator
:
value
=>
Object
.
values
(
Namespace
).
includes
(
value
),
validator
:
(
value
)
=>
Object
.
values
(
Namespace
).
includes
(
value
),
},
},
methods
:
{
...
...
ee/app/assets/javascripts/ldap_groups_select.js
View file @
cfb36828
...
...
@@ -26,7 +26,7 @@ export default function initLDAPGroupsSelect() {
minimumInputLength
:
1
,
query
(
query
)
{
const
provider
=
$
(
'
#ldap_group_link_provider
'
).
val
();
return
Api
.
ldapGroups
(
query
.
term
,
provider
,
groups
=>
{
return
Api
.
ldapGroups
(
query
.
term
,
provider
,
(
groups
)
=>
{
const
data
=
{
results
:
groups
,
};
...
...
ee/app/assets/javascripts/license_compliance/store/modules/list/actions.js
View file @
cfb36828
...
...
@@ -26,10 +26,10 @@ export const fetchLicenses = ({ state, dispatch }, params = {}) => {
...
params
,
},
})
.
then
(
response
=>
{
.
then
(
(
response
)
=>
{
dispatch
(
'
receiveLicensesSuccess
'
,
response
);
})
.
catch
(
error
=>
{
.
catch
(
(
error
)
=>
{
dispatch
(
'
receiveLicensesError
'
,
error
);
});
};
...
...
ee/app/assets/javascripts/license_compliance/store/modules/list/getters.js
View file @
cfb36828
import
{
LICENSE_APPROVAL_CLASSIFICATION
}
from
'
ee/vue_shared/license_compliance/constants
'
;
import
{
REPORT_STATUS
}
from
'
./constants
'
;
export
const
isJobSetUp
=
state
=>
state
.
reportInfo
.
status
!==
REPORT_STATUS
.
jobNotSetUp
;
export
const
isJobFailed
=
state
=>
export
const
isJobSetUp
=
(
state
)
=>
state
.
reportInfo
.
status
!==
REPORT_STATUS
.
jobNotSetUp
;
export
const
isJobFailed
=
(
state
)
=>
[
REPORT_STATUS
.
jobFailed
,
REPORT_STATUS
.
noLicenses
,
REPORT_STATUS
.
incomplete
].
includes
(
state
.
reportInfo
.
status
,
);
export
const
hasPolicyViolations
=
state
=>
{
export
const
hasPolicyViolations
=
(
state
)
=>
{
return
state
.
licenses
.
some
(
license
=>
license
.
classification
===
LICENSE_APPROVAL_CLASSIFICATION
.
DENIED
,
(
license
)
=>
license
.
classification
===
LICENSE_APPROVAL_CLASSIFICATION
.
DENIED
,
);
};
ee/app/assets/javascripts/license_compliance/store/plugins/mediator.js
View file @
cfb36828
...
...
@@ -2,7 +2,7 @@ import { LICENSE_MANAGEMENT } from 'ee/vue_shared/license_compliance/store/const
import
*
as
licenseMangementMutationTypes
from
'
ee/vue_shared/license_compliance/store/mutation_types
'
;
import
{
LICENSE_LIST
}
from
'
../constants
'
;
export
default
store
=>
{
export
default
(
store
)
=>
{
store
.
subscribe
(({
type
})
=>
{
switch
(
type
)
{
case
`
${
LICENSE_MANAGEMENT
}
/
${
licenseMangementMutationTypes
.
RECEIVE_SET_LICENSE_APPROVAL
}
`
:
...
...
ee/app/assets/javascripts/license_compliance/utils/mappers.js
View file @
cfb36828
...
...
@@ -12,7 +12,7 @@ export const getLicenseKey = ({ id }) => {
* Maps an individual license response entity into the license object we'll store in our Vuex state
* @param {Object} license
*/
export
const
toLicenseObject
=
license
=>
({
export
const
toLicenseObject
=
(
license
)
=>
({
...
license
,
key
:
getLicenseKey
(
license
),
});
ee/app/assets/javascripts/maintenance_mode_settings/store/index.js
View file @
cfb36828
...
...
@@ -12,4 +12,4 @@ export const getStoreConfig = ({ maintenanceEnabled, bannerMessage }) => ({
state
:
createState
({
maintenanceEnabled
,
bannerMessage
}),
});
export
const
createStore
=
config
=>
new
Vuex
.
Store
(
getStoreConfig
(
config
));
export
const
createStore
=
(
config
)
=>
new
Vuex
.
Store
(
getStoreConfig
(
config
));
ee/app/assets/javascripts/members.js
View file @
cfb36828
...
...
@@ -70,7 +70,7 @@ export default class MembersEE extends Members {
$toggle
.
enable
();
$dateInput
.
enable
();
})
.
catch
(
xhr
=>
{
.
catch
(
(
xhr
)
=>
{
$btn
.
enable
();
if
(
xhr
.
status
===
403
)
{
...
...
ee/app/assets/javascripts/members/components/table/members_table_cell.vue
View file @
cfb36828
...
...
@@ -19,7 +19,7 @@ export default {
return
createElement
(
CEMembersTableCell
,
{
props
:
{
member
:
this
.
member
},
scopedSlots
:
{
default
:
props
=>
{
default
:
(
props
)
=>
{
return
this
.
$scopedSlots
.
default
({
...
props
,
permissions
:
{
...
...
ee/app/assets/javascripts/members/store/state.js
View file @
cfb36828
import
createState
from
'
~/members/store/state
'
;
export
default
initialState
=>
{
export
default
(
initialState
)
=>
{
const
{
ldapOverridePath
}
=
initialState
;
return
{
...
...
ee/app/assets/javascripts/members/utils.js
View file @
cfb36828
...
...
@@ -34,4 +34,4 @@ export const generateBadges = (member, isCurrentUser) => [
},
];
export
const
canOverride
=
member
=>
member
.
canOverride
;
export
const
canOverride
=
(
member
)
=>
member
.
canOverride
;
ee/app/assets/javascripts/on_demand_scans/components/on_demand_scans_form.vue
View file @
cfb36828
...
...
@@ -144,7 +144,7 @@ export default {
return
ERROR_MESSAGES
[
this
.
errorType
]
||
null
;
},
isLoadingProfiles
()
{
return
[
'
scannerProfiles
'
,
'
siteProfiles
'
].
some
(
name
=>
this
.
$apollo
.
queries
[
name
].
loading
);
return
[
'
scannerProfiles
'
,
'
siteProfiles
'
].
some
(
(
name
)
=>
this
.
$apollo
.
queries
[
name
].
loading
);
},
failedToLoadProfiles
()
{
return
[
ERROR_FETCH_SCANNER_PROFILES
,
ERROR_FETCH_SITE_PROFILES
].
includes
(
this
.
errorType
);
...
...
@@ -201,7 +201,7 @@ export default {
}
},
)
.
catch
(
e
=>
{
.
catch
(
(
e
)
=>
{
Sentry
.
captureException
(
e
);
this
.
showErrors
(
ERROR_RUN_SCAN
);
this
.
loading
=
false
;
...
...
ee/app/assets/javascripts/on_demand_scans/components/profile_selector/scanner_profile_selector.vue
View file @
cfb36828
...
...
@@ -26,8 +26,8 @@ export default {
},
computed
:
{
formattedProfiles
()
{
return
this
.
profiles
.
map
(
profile
=>
{
const
addSuffix
=
str
=>
return
this
.
profiles
.
map
(
(
profile
)
=>
{
const
addSuffix
=
(
str
)
=>
this
.
glFeatures
.
securityOnDemandScansSiteValidation
?
`
${
str
}
(
${
SCAN_TYPE_LABEL
[
profile
.
scanType
]}
)`
:
str
;
...
...
ee/app/assets/javascripts/on_demand_scans/components/profile_selector/site_profile_selector.vue
View file @
cfb36828
...
...
@@ -27,12 +27,12 @@ export default {
},
computed
:
{
formattedProfiles
()
{
return
this
.
profiles
.
map
(
profile
=>
{
return
this
.
profiles
.
map
(
(
profile
)
=>
{
const
isValidated
=
profile
.
validationStatus
===
DAST_SITE_VALIDATION_STATUS
.
PASSED
;
const
suffix
=
isValidated
?
s__
(
'
DastProfiles|Validated
'
)
:
s__
(
'
DastProfiles|Not Validated
'
);
const
addSuffix
=
str
=>
const
addSuffix
=
(
str
)
=>
this
.
glFeatures
.
securityOnDemandScansSiteValidation
?
`
${
str
}
(
${
suffix
}
)`
:
str
;
return
{
...
profile
,
...
...
ee/app/assets/javascripts/oncall_schedules/components/add_edit_schedule_form.vue
View file @
cfb36828
...
...
@@ -74,7 +74,7 @@ export default {
computed
:
{
filteredTimezones
()
{
const
lowerCaseTzSearchTerm
=
this
.
tzSearchTerm
.
toLowerCase
();
return
this
.
timezones
.
filter
(
tz
=>
return
this
.
timezones
.
filter
(
(
tz
)
=>
this
.
getFormattedTimezone
(
tz
).
toLowerCase
().
includes
(
lowerCaseTzSearchTerm
),
);
},
...
...
ee/app/assets/javascripts/oncall_schedules/components/add_edit_schedule_modal.vue
View file @
cfb36828
...
...
@@ -128,7 +128,7 @@ export default {
this
.
$emit
(
'
scheduleCreated
'
);
},
)
.
catch
(
error
=>
{
.
catch
(
(
error
)
=>
{
this
.
error
=
error
;
})
.
finally
(()
=>
{
...
...
@@ -161,7 +161,7 @@ export default {
this
.
$refs
.
addUpdateScheduleModal
.
hide
();
},
)
.
catch
(
error
=>
{
.
catch
(
(
error
)
=>
{
this
.
error
=
error
;
})
.
finally
(()
=>
{
...
...
ee/app/assets/javascripts/oncall_schedules/components/delete_schedule_modal.vue
View file @
cfb36828
...
...
@@ -75,7 +75,7 @@ export default {
}
this
.
$refs
.
deleteScheduleModal
.
hide
();
})
.
catch
(
error
=>
{
.
catch
(
(
error
)
=>
{
this
.
error
=
error
;
})
.
finally
(()
=>
{
...
...
ee/app/assets/javascripts/oncall_schedules/components/oncall_schedule.vue
View file @
cfb36828
...
...
@@ -65,7 +65,7 @@ export default {
},
computed
:
{
offset
()
{
const
selectedTz
=
this
.
timezones
.
find
(
tz
=>
tz
.
identifier
===
this
.
schedule
.
timezone
);
const
selectedTz
=
this
.
timezones
.
find
(
(
tz
)
=>
tz
.
identifier
===
this
.
schedule
.
timezone
);
return
__
(
`(UTC
${
selectedTz
.
formatted_offset
}
)`
);
},
timeframe
()
{
...
...
ee/app/assets/javascripts/oncall_schedules/components/rotations/components/add_rotation_modal.vue
View file @
cfb36828
...
...
@@ -154,7 +154,7 @@ export default {
this
.
$refs
.
createScheduleModal
.
hide
();
},
)
.
catch
(
error
=>
{
.
catch
(
(
error
)
=>
{
this
.
error
=
error
;
})
.
finally
(()
=>
{
...
...
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