Skip to content

Commit

Permalink
deploy: 4a587ca
Browse files Browse the repository at this point in the history
  • Loading branch information
thjaeckle committed Feb 5, 2024
1 parent a7c3c03 commit b8acb77
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 48 deletions.
87 changes: 44 additions & 43 deletions dist/main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion modules/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ export async function callDittoREST(method,
throw new Error('An error occurred: ' + response.status);
}
}
if (response.status !== 204) {
if (response.status !== 204 && response.status !== 202) {
if (returnHeaders) {
return response;
} else {
Expand Down
3 changes: 2 additions & 1 deletion modules/connections/connections.html
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,11 @@ <h6>Connection Logs <span class="badge rounded-pill bg-info" id="badgeConnection
</div>
<table-filter id="tableFilterConnectionLogs"></table-filter>
<div class="table-wrap">
<table class="table table-striped table-hover table-sm">
<table class="table table-striped table-hover table-sm" style="table-layout: fixed;">
<thead>
<tr>
<th>Timestamp</th>
<th>Category</th>
<th>Type</th>
<th>Level</th>
</tr>
Expand Down
2 changes: 0 additions & 2 deletions modules/connections/connectionsCRUD.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,6 @@ function onConnectionEditorInput() {

function onConnectionEditorChangeAnnotation() {
hasErrors = connectionEditor.getSession().getAnnotations().filter((a) => a.type === 'error').length > 0;
incomingEditor.setReadOnly(hasErrors);
outgoingEditor.setReadOnly(hasErrors);
}

function onUpdateConnectionClick() {
Expand Down
2 changes: 2 additions & 0 deletions modules/connections/connectionsMonitor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ export async function ready() {
Utils.getAllElementsById(dom);

connectionLogDetail = Utils.createAceEditor('connectionLogDetail', 'ace/mode/json', true);
connectionLogDetail.session.setUseWrapMode(true);
connectionStatusDetail = Utils.createAceEditor('connectionStatusDetail', 'ace/mode/json', true);

// Status --------------
Expand Down Expand Up @@ -162,6 +163,7 @@ function fillConnectionLogsTable() {
Utils.addTableRow(
dom.tbodyConnectionLogs,
Utils.formatDate(entry.timestamp, true), false, null,
entry.category,
entry.type,
entry.level
);
Expand Down
2 changes: 1 addition & 1 deletion modules/things/messagesIncoming.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ function onSelectThingUpdateMessageContentSelect() {
function onMessage(messageData) {
messages.push(messageData);

const filteredMessage = dom.tableFilterMessagesIncoming.filterItems([messageData]);
const filteredMessage = dom.tableFilterMessagesIncoming.filterItems(messages);

if (filteredMessage.length > 0) {
filteredMessages.push(filteredMessage[0]);
Expand Down

0 comments on commit b8acb77

Please sign in to comment.