File tree Expand file tree Collapse file tree
view/base/templates/script Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ public function __construct(
4949 parent ::__construct ($ context );
5050 }
5151
52- public function execute (): ResultInterface | ResponseInterface
52+ public function execute (): ResultInterface
5353 {
5454 $ data = $ this ->requestDataLoader ->load ();
5555 $ this ->requestDataLoader ->mergeRequestParams ();
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ public function __construct(
4545 ) {
4646 }
4747
48- public function execute (): ResultInterface | ResponseInterface
48+ public function execute (): ResultInterface
4949 {
5050 $ data = $ this ->requestDataLoader ->load ();
5151 $ this ->requestDataLoader ->mergeRequestParams ();
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ public function __construct(
1717 ) {
1818 }
1919
20- public function dispatch (ComponentInterface $ component , mixed $ componentData ): void
20+ public function dispatch (ComponentInterface $ component , $ componentData ): void
2121 {
2222 $ this ->eventManager ->dispatch ('loki_components_repository_dispatch ' , ['component ' => $ component ]);
2323
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ if ($interval < 10) {
7777 });
7878 })
7979 .catch(error => {
80- Alpine.store('LokiMessageStore ').addErrorMessage(error);
80+ Alpine.store('Message ').addErrorMessage(error);
8181 })
8282 .finally(() => {
8383 requests.forEach(request => {
@@ -107,7 +107,7 @@ if ($interval < 10) {
107107 handleJson(data) {
108108 if (data.error) {
109109 LokiComponentsLogger.error(data.error);
110- Alpine.store('LokiMessageStore ').addErrorMessage(data.error);
110+ Alpine.store('Message ').addErrorMessage(data.error);
111111 }
112112
113113 if (data.redirect) {
@@ -143,7 +143,7 @@ if ($interval < 10) {
143143 if (messageScript) {
144144 const messages = JSON.parse(messageScript.innerHTML);
145145 messages.forEach((message) => {
146- Alpine.store('LokiMessageStore ').addMessage(message.type, message.text);
146+ Alpine.store('Message ').addMessage(message.type, message.text);
147147 });
148148 }
149149
Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ $componentUtil = $viewModelFactory->create(ComponentUtil::class);
132132 this.addGlobalMessage('error', messageText);
133133 },
134134 addGlobalMessage(messageType, messageText) {
135- Alpine.store('LokiMessageStore ').addMessage(messageType, messageText);
135+ Alpine.store('Message ').addMessage(messageType, messageText);
136136 },
137137 addLocalSuccess(messageText) {
138138 this.addLocalMessage('success', messageText);
You can’t perform that action at this time.
0 commit comments