Skip to content

Commit 1070218

Browse files
authored
Merge pull request #455 from benderl/message-cleanup
remove outdated error topic
2 parents c24206b + c5e6f46 commit 1070218

File tree

2 files changed

+0
-64
lines changed

2 files changed

+0
-64
lines changed

src/components/OpenwbPageCommandAlert.vue

-33
This file was deleted.

src/components/OpenwbPageMessages.vue

-31
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ export default {
7979
mqttTopicsToSubscribe: [
8080
"openWB/system/messages/+",
8181
"openWB/command/" + this.$root.mqttClientId + "/messages/+",
82-
"openWB/command/" + this.$root.mqttClientId + "/error",
8382
],
8483
showAllMessages: false,
8584
hiddenMessages: [],
@@ -109,23 +108,6 @@ export default {
109108
},
110109
messages() {
111110
const myMessages = [];
112-
if (this.alertData) {
113-
myMessages.push({
114-
topic:
115-
"openWB/command/" + this.$root.mqttClientId + "/error",
116-
source: "command",
117-
type: "danger",
118-
message:
119-
'Bei der Verarbeitung des Befehls \'<span class="font-weight-bold">' +
120-
this.alertData.command +
121-
"</span>' mit den Parametern '<span class=\"font-weight-bold\">" +
122-
this.alertData.data +
123-
"</span>' ist ein Fehler aufgetreten:<br />" +
124-
"<pre class='font-weight-bold'>" +
125-
this.alertData.error +
126-
"</pre>",
127-
});
128-
}
129111
this.systemMessages.forEach((message) => {
130112
myMessages.push(message);
131113
});
@@ -150,11 +132,6 @@ export default {
150132
/**
151133
* get initial error message
152134
*/
153-
alertData() {
154-
return this.$store.state.mqtt[
155-
"openWB/command/" + this.$root.mqttClientId + "/error"
156-
];
157-
},
158135
systemMessages() {
159136
let messageTopics = this.getWildcardTopics(
160137
"openWB/system/messages/+",
@@ -187,14 +164,6 @@ export default {
187164
clearTopic(topic) {
188165
this.$root.doPublish(topic, undefined);
189166
},
190-
/**
191-
* Removes client specific error topic from broker
192-
*/
193-
dismissError() {
194-
this.clearTopic(
195-
"openWB/command/" + this.$root.mqttClientId + "/error",
196-
);
197-
},
198167
/**
199168
* Removes system or client specific topics from broker
200169
*/

0 commit comments

Comments
 (0)