File tree Expand file tree Collapse file tree 2 files changed +21
-5
lines changed
app/code/Magento/PageBuilder
Controller/Adminhtml/Template
view/adminhtml/web/js/modal Expand file tree Collapse file tree 2 files changed +21
-5
lines changed Original file line number Diff line number Diff line change @@ -56,9 +56,9 @@ public function __construct(
56
56
}
57
57
58
58
/**
59
- * Index action
59
+ * Load the Manage Templates page
60
60
*
61
- * @return \Magento\Backend\Model\View\Result\Page
61
+ * @return \Magento\Framework\Controller\AbstractResult
62
62
*/
63
63
public function execute ()
64
64
{
@@ -70,7 +70,7 @@ public function execute()
70
70
$ resultPage = $ this ->resultPageFactory ->create ();
71
71
$ resultPage ->setActiveMenu ('Magento_PageBuilder::templates ' );
72
72
$ resultPage ->addBreadcrumb (__ ('CMS ' ), __ ('CMS ' ));
73
- $ resultPage ->addBreadcrumb (__ ('Manage Templates ' ), __ ('Manage Templates ' ));
73
+ $ resultPage ->addBreadcrumb (__ ('Templates ' ), __ ('Templates ' ));
74
74
$ resultPage ->getConfig ()->getTitle ()->prepend (__ ('Templates ' ));
75
75
76
76
return $ resultPage ;
Original file line number Diff line number Diff line change 5
5
6
6
define ( [
7
7
'Magento_Ui/js/modal/modal-component' ,
8
- 'Magento_PageBuilder/js/events'
9
- ] , function ( ModalComponent , events ) {
8
+ 'Magento_PageBuilder/js/events' ,
9
+ 'jquery'
10
+ ] , function ( ModalComponent , events , $ ) {
10
11
'use strict' ;
11
12
12
13
return ModalComponent . extend ( {
@@ -30,6 +31,21 @@ define([
30
31
return this ;
31
32
} ,
32
33
34
+ /**
35
+ * Set the title only for the current modal
36
+ *
37
+ * @param {String } title
38
+ */
39
+ setTitle : function ( title ) {
40
+ if ( this . title !== title ) {
41
+ this . title = title ;
42
+ }
43
+
44
+ if ( this . modal ) {
45
+ this . modal . parents ( '[role="dialog"]' ) . find ( $ ( this . modal ) . modal ( 'option' ) . modalTitle ) . text ( title ) ;
46
+ }
47
+ } ,
48
+
33
49
/**
34
50
* Listen for from save.
35
51
*
You can’t perform that action at this time.
0 commit comments