Skip to content

Commit 911446b

Browse files
committed
Rename LokiMessageStore to Message
1 parent 82c8f9d commit 911446b

5 files changed

Lines changed: 7 additions & 7 deletions

File tree

Controller/Adminhtml/Index/Html.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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();

Controller/Index/Html.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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();

Util/Controller/RepositoryDispatcher.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

view/base/templates/script/ajax-queue.phtml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

view/base/templates/script/component-type/base-component-type.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)