Skip to content
Snippets Groups Projects
Commit 764a3845 authored by dcz's avatar dcz
Browse files

Enable entries filtering.

parent af98c8d0
Branches
No related merge requests found
......@@ -9,7 +9,7 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>{% block title %}{% endblock %} – Walenty [beta]</title>
<title>{% block title %}{% endblock %} – Shell Valier [BETA]</title>
<link rel="icon" href="{% static 'common/favicon.ico' %}">
<link rel="stylesheet" type="text/css" href="https://bootswatch.com/4/lux/bootstrap.min.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@300;400;700&display=swap">
......@@ -43,7 +43,7 @@
<!--z-index 2 above sticky-top-->
<nav id="page-nav" class="navbar navbar-expand-lg sticky-top navbar-dark bg-dark font-weight-bold p-2" style="z-index: 1022;">
<a class="navbar-brand" href="{% url 'dash' %}">Walenty [beta]</a>
<a class="navbar-brand" href="{% url 'dash' %}">Shell Valier [BETA]</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
......
......@@ -58,6 +58,7 @@ export default {
<div class="w-100 h-100">
<div id="right-pane" class="col w-100 p-0">
<unification-right-pane
:key="lexicalUnitId"
:entryId="entryId"
:lexicalUnitId="lexicalUnitId"
:initialUnifiedFrameId="unifiedFrameId"
......
......@@ -2,5 +2,10 @@ import Entries from './components/Entries.js';
const { createApp } = Vue;
window.update_entries = function () {
window.unificationLeftPaneApp = createApp(Entries).mount('#vue-app');
if(window.unificationLeftPaneApp) {
window.unificationLeftPaneApp.unificationEntriesListRefreshKey++;
window.unificationLeftPaneApp.lexicalUnitId = null;
} else {
window.unificationLeftPaneApp = createApp(Entries).mount('#vue-app');
}
}
......@@ -427,6 +427,9 @@ function initialize_main_form() {
if (response.errors) {
show_form_errors(main_form, response.errors);
} else if (response.success) {
if(window.unificationLeftPaneApp) {
// window.unificationLeftPaneApp.refresh();
}
update_entries();
$('#entry-filters').modal('hide');
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment