Currently, if you go to Settings -> Items -> Add -> Save, you'll be
brought back to the Items list (back navigation).
This PR changes this behavior so that after the new item is saved/added,
the user is redirected to the Item Details page **of that new item**, so
they can immediately work on it.
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
Fixes an issue, where the page title was not centered sometimes due to a
rendering issue (race condition?) in Framework7.
Fixes the following Vue warning:
```
Avoid adding reactive properties to a Vue instance or its root $data at runtime - declare it upfront in the data option.
```
Signed-off-by: Florian Hotze <dev@florianhotze.com>
When using the log viewer, I have regularly noticed that the time column
is wider than required, as well as the logger name column taking up much
space and making the message column move if a new log with a longer
logger name comes in.
This sets the width of the time, level and logger name columns to a
fixed value and limits the logger name length.
Signed-off-by: Florian Hotze <dev@florianhotze.com>
User inadvertently losing the entered new tag when they haven't realised
that they needed to press Enter. It seems that onblur was originally
intended to auto-add the typed tag, e.g. when user immediately clicked
"Save" (top right), but it was attached to the wrong element, thus the
event didn't fire.
Changes keypress to keyup event because the keypress is
missing the last letter otherwise. It wasn't a problem in the past
because it only worked with Enter key (being the last keypress). Missing
the last letter becomes a problem when adding it in the onblur event. So
keyup solved that.
Also removed `@keyPressed.native="keyPressed"`, not sure why it was needed.
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
When the tag input is supposed to filter out semantic tags, also prevent user from entering them.
It is up to the caller of tag-input form to determine whether it can accept semantic tags or not,
by specifying it in the `showSemanticTags` property.
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
Prevents JavaDoc tooling issues because these tools check comments
starting with `/**`.
Depends on #2987
Signed-off-by: Wouter Born <github@maindrain.net>
Follow-up for #2907.
Fixes WS client broken due to `=` being part of the base74-encoded
token, which is no allowed WS subprotocol value.
Signed-off-by: Florian Hotze <dev@florianhotze.com>
Fixes#2956.
This fix creates the limitation that an Item must not be named
`undefined` - for an Item with this name, state tracking won't work.
---------
Signed-off-by: Florian Hotze <dev@florianhotze.com>
Depens on https://github.com/openhab/openhab-core/pull/4515.
This refactors the WebSocket connection code from #2884 to the `$oh`
namespace, same as it is for the SSE logic.
It also passes the access token as WebSocket subprotocol so it is sent
with the `Sec-WebSocket-Protocol` header.
---------
Signed-off-by: Florian Hotze <dev@florianhotze.com>
Related to #2584 and
https://github.com/openhab/openhab-core/issues/4466.
This avoids that the global SSE connection is always established, and
therefore reduces problems with the max parallel HTTP connections
limitation. The global SSE connection is now only established if the web
audio sink or the command Item are enabled.
Whilst this change potentially makes the UI not reload the model
automatically on change, practically the now removed mechanism might
haven't been really useful at all because the model is already reloaded
on Main UI start, and if SSE was not connected the moment an Item
changed the mechanism did not trigger.
Signed-off-by: Florian Hotze <dev@florianhotze.com>
This PR implements drag and drop in the sitemap tree, to make it easier
to graphically rearange sitemaps.
To achieve this, [Vue.Draggable](https://github.com/SortableJS/Vue.Draggable) (by itself
based on SortableJS) is included.
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
Adds String type support to the interactive SVG canvas by allowing to
compare a string to a specific value that is perceived as state ON:
Signed-off-by: Stefan Höhn <mail@stefanhoehn.com>