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
61f46c69
Commit
61f46c69
authored
Jan 18, 2021
by
Tom Quirk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move integrations settings layout to Vue
parent
c41c5383
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
90 additions
and
90 deletions
+90
-90
app/assets/javascripts/integrations/edit/components/integration_form.vue
...scripts/integrations/edit/components/integration_form.vue
+83
-75
app/views/projects/services/_form.html.haml
app/views/projects/services/_form.html.haml
+4
-9
app/views/shared/integrations/_form.html.haml
app/views/shared/integrations/_form.html.haml
+3
-6
No files found.
app/assets/javascripts/integrations/edit/components/integration_form.vue
View file @
61f46c69
...
@@ -95,10 +95,7 @@ export default {
...
@@ -95,10 +95,7 @@ export default {
</
script
>
</
script
>
<
template
>
<
template
>
<div>
<div
class=
"gl-mb-3"
>
<!-- helpHtml is trusted input -->
<div
v-if=
"helpHtml"
v-safe-html:
[$
options.helpHtmlConfig]=
"helpHtml"
></div>
<override-dropdown
<override-dropdown
v-if=
"defaultState !== null"
v-if=
"defaultState !== null"
:inherit-from-id=
"defaultState.id"
:inherit-from-id=
"defaultState.id"
...
@@ -107,6 +104,13 @@ export default {
...
@@ -107,6 +104,13 @@ export default {
@
change=
"setOverride"
@
change=
"setOverride"
/>
/>
<div
class=
"row"
>
<div
class=
"col-lg-4"
></div>
<div
class=
"col-lg-8"
>
<!-- helpHtml is trusted input -->
<div
v-if=
"helpHtml"
v-safe-html:
[$
options.helpHtmlConfig]=
"helpHtml"
></div>
<active-checkbox
v-if=
"propsSource.showActive"
:key=
"`$
{currentKey}-active-checkbox`" />
<active-checkbox
v-if=
"propsSource.showActive"
:key=
"`$
{currentKey}-active-checkbox`" />
<jira-trigger-fields
<jira-trigger-fields
v-if=
"isJira"
v-if=
"isJira"
...
@@ -180,7 +184,11 @@ export default {
...
@@ -180,7 +184,11 @@ export default {
<reset-confirmation-modal
@
reset=
"onResetClick"
/>
<reset-confirmation-modal
@
reset=
"onResetClick"
/>
</
template
>
</
template
>
<gl-button
class=
"btn-cancel"
:href=
"propsSource.cancelPath"
>
{{ __('Cancel') }}
</gl-button>
<gl-button
class=
"btn-cancel"
:href=
"propsSource.cancelPath"
>
{{
__('Cancel')
}}
</gl-button>
</div>
</div>
</div>
</div>
</div>
</div>
</template>
</template>
app/views/projects/services/_form.html.haml
View file @
61f46c69
-
if
lookup_context
.
template_exists?
(
'top'
,
"projects/services/
#{
@service
.
to_param
}
"
,
true
)
-
if
lookup_context
.
template_exists?
(
'top'
,
"projects/services/
#{
@service
.
to_param
}
"
,
true
)
=
render
"projects/services/
#{
@service
.
to_param
}
/top"
=
render
"projects/services/
#{
@service
.
to_param
}
/top"
%h3
.page-title
.gl-mt-3
%h3
.page-title
=
@service
.
title
=
@service
.
title
-
if
@service
.
operating?
-
if
@service
.
operating?
=
sprite_icon
(
'check'
,
css_class:
'gl-text-green-500'
)
=
sprite_icon
(
'check'
,
css_class:
'gl-text-green-500'
)
.row.gl-mb-3
=
form_for
(
@service
,
as: :service
,
url:
scoped_integration_path
(
@service
),
method: :put
,
html:
{
class:
'gl-show-field-errors integration-settings-form js-integration-settings-form'
,
data:
{
'test-url'
=>
test_project_service_path
(
@project
,
@service
)
}
})
do
|
form
|
.col-lg-4
-
if
@service
.
respond_to?
(
:detailed_description
)
%p
=
@service
.
detailed_description
.col-lg-8
=
form_for
(
@service
,
as: :service
,
url:
scoped_integration_path
(
@service
),
method: :put
,
html:
{
class:
'gl-show-field-errors integration-settings-form js-integration-settings-form'
,
data:
{
'test-url'
=>
test_project_service_path
(
@project
,
@service
)
}
})
do
|
form
|
=
render
'shared/service_settings'
,
form:
form
,
integration:
@service
=
render
'shared/service_settings'
,
form:
form
,
integration:
@service
%input
{
id:
'services_redirect_to'
,
type:
'hidden'
,
name:
'redirect_to'
,
value:
request
.
referrer
}
%input
{
id:
'services_redirect_to'
,
type:
'hidden'
,
name:
'redirect_to'
,
value:
request
.
referrer
}
...
...
app/views/shared/integrations/_form.html.haml
View file @
61f46c69
-
integration
=
local_assigns
.
fetch
(
:integration
)
-
integration
=
local_assigns
.
fetch
(
:integration
)
%h3
.page-title
.gl-mt-3
%h3
.page-title
=
integration
.
title
=
integration
.
title
.row
=
form_for
integration
,
as: :service
,
url:
scoped_integration_path
(
integration
),
method: :put
,
html:
{
class:
'gl-show-field-errors integration-settings-form js-integration-settings-form'
,
data:
{
'test-url'
=>
scoped_test_integration_path
(
integration
)
}
}
do
|
form
|
.col-lg-4
.col-lg-8
=
form_for
integration
,
as: :service
,
url:
scoped_integration_path
(
integration
),
method: :put
,
html:
{
class:
'gl-show-field-errors integration-settings-form js-integration-settings-form'
,
data:
{
'test-url'
=>
scoped_test_integration_path
(
integration
)
}
}
do
|
form
|
=
render
'shared/service_settings'
,
form:
form
,
integration:
integration
=
render
'shared/service_settings'
,
form:
form
,
integration:
integration
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