Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
C
context
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
context
Commits
5e1d693e
Commit
5e1d693e
authored
Apr 14, 2020
by
icurk
Committed by
boshtian
Apr 14, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#2879663
by icurk, jzavrl: Contextual link for removing block
parent
10ffa5da
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
+9
-6
modules/context_ui/context_ui.links.contextual.yml
modules/context_ui/context_ui.links.contextual.yml
+5
-1
src/Reaction/Blocks/Form/BlockDeleteForm.php
src/Reaction/Blocks/Form/BlockDeleteForm.php
+4
-5
No files found.
modules/context_ui/context_ui.links.contextual.yml
View file @
5e1d693e
context_block_config
:
title
:
'
Configure
block'
route_name
:
'
context.reaction.blocks.block_edit'
group
:
'
context_block'
\ No newline at end of file
group
:
'
context_block'
context_block_delete
:
title
:
'
Remove
block
from
context'
route_name
:
'
context.reaction.blocks.block_delete'
group
:
'
context_block'
src/Reaction/Blocks/Form/BlockDeleteForm.php
View file @
5e1d693e
...
...
@@ -103,13 +103,12 @@ class BlockDeleteForm extends ConfirmFormBase {
// button very well.
if
(
$this
->
getRequest
()
->
isXmlHttpRequest
())
{
unset
(
$form
[
'actions'
][
'cancel'
]);
// Submit the form with AJAX if possible.
$form
[
'actions'
][
'submit'
][
'#ajax'
]
=
[
'callback'
=>
'::submitFormAjax'
];
}
// Submit the form with AJAX if possible.
$form
[
'actions'
][
'submit'
][
'#ajax'
]
=
[
'callback'
=>
'::submitFormAjax'
];
return
$form
;
}
...
...
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