diff --git a/common/templates/base.html b/common/templates/base.html index d24643d62bc583537521b1b4327af3b00d239e6b..770ca005330baeaff2b69313cab091cfcf21e247 100644 --- a/common/templates/base.html +++ b/common/templates/base.html @@ -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> diff --git a/entries/static/entries/js/components/Entries.js b/entries/static/entries/js/components/Entries.js index 336a0e4bbf6f01b8bb9ba9d20453bab8da4f9a76..2b92bd810dd3911bfccd977aaae86677741322bd 100644 --- a/entries/static/entries/js/components/Entries.js +++ b/entries/static/entries/js/components/Entries.js @@ -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" diff --git a/entries/static/entries/js/entries_index.js b/entries/static/entries/js/entries_index.js index b09d1940df0ea7a7c1a7b7c8d36eec2e5496a152..86c58d41ba9b230cd371cf7b6235309c28c091c6 100644 --- a/entries/static/entries/js/entries_index.js +++ b/entries/static/entries/js/entries_index.js @@ -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'); + } } diff --git a/entries/static/entries/js/forms.js b/entries/static/entries/js/forms.js index 76c75bb19fd6c2de8d1ca942d86f875a42eb7445..b0daed0700b3699bfe42ac10bc1e6c065487b4a2 100644 --- a/entries/static/entries/js/forms.js +++ b/entries/static/entries/js/forms.js @@ -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'); }