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
50908fbe
Commit
50908fbe
authored
Aug 07, 2018
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
keep pipeline triggers settings panel open after form submission
parent
d1026e42
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
app/controllers/projects/triggers_controller.rb
app/controllers/projects/triggers_controller.rb
+5
-5
No files found.
app/controllers/projects/triggers_controller.rb
View file @
50908fbe
...
@@ -7,7 +7,7 @@ class Projects::TriggersController < Projects::ApplicationController
...
@@ -7,7 +7,7 @@ class Projects::TriggersController < Projects::ApplicationController
layout
'project_settings'
layout
'project_settings'
def
index
def
index
redirect_to
project_settings_ci_cd_path
(
@project
)
redirect_to
project_settings_ci_cd_path
(
@project
,
anchor:
'js-pipeline-triggers'
)
end
end
def
create
def
create
...
@@ -19,7 +19,7 @@ class Projects::TriggersController < Projects::ApplicationController
...
@@ -19,7 +19,7 @@ class Projects::TriggersController < Projects::ApplicationController
flash
[
:alert
]
=
'You could not create a new trigger.'
flash
[
:alert
]
=
'You could not create a new trigger.'
end
end
redirect_to
project_settings_ci_cd_path
(
@project
)
redirect_to
project_settings_ci_cd_path
(
@project
,
anchor:
'js-pipeline-triggers'
)
end
end
def
take_ownership
def
take_ownership
...
@@ -29,7 +29,7 @@ class Projects::TriggersController < Projects::ApplicationController
...
@@ -29,7 +29,7 @@ class Projects::TriggersController < Projects::ApplicationController
flash
[
:alert
]
=
'You could not take ownership of trigger.'
flash
[
:alert
]
=
'You could not take ownership of trigger.'
end
end
redirect_to
project_settings_ci_cd_path
(
@project
)
redirect_to
project_settings_ci_cd_path
(
@project
,
anchor:
'js-pipeline-triggers'
)
end
end
def
edit
def
edit
...
@@ -37,7 +37,7 @@ class Projects::TriggersController < Projects::ApplicationController
...
@@ -37,7 +37,7 @@ class Projects::TriggersController < Projects::ApplicationController
def
update
def
update
if
trigger
.
update
(
trigger_params
)
if
trigger
.
update
(
trigger_params
)
redirect_to
project_settings_ci_cd_path
(
@project
),
notice:
'Trigger was successfully updated.'
redirect_to
project_settings_ci_cd_path
(
@project
,
anchor:
'js-pipeline-triggers'
),
notice:
'Trigger was successfully updated.'
else
else
render
action:
"edit"
render
action:
"edit"
end
end
...
@@ -50,7 +50,7 @@ class Projects::TriggersController < Projects::ApplicationController
...
@@ -50,7 +50,7 @@ class Projects::TriggersController < Projects::ApplicationController
flash
[
:alert
]
=
"Could not remove the trigger."
flash
[
:alert
]
=
"Could not remove the trigger."
end
end
redirect_to
project_settings_ci_cd_path
(
@project
),
status: :found
redirect_to
project_settings_ci_cd_path
(
@project
,
anchor:
'js-pipeline-triggers'
),
status: :found
end
end
private
private
...
...
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