From d28f4623fe0d0d05e1c2f90e9ba3d2d56220436d Mon Sep 17 00:00:00 2001 From: Hardin Gray Date: Wed, 26 Feb 2025 14:25:36 -0500 Subject: [PATCH 1/2] chore: improve reload different screen example --- .../behaviors/actions/reload/index.xml.njk | 2 +- .../behaviors/actions/reload/reloaded.xml.njk | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 demo/backend/navigation/behaviors/actions/reload/reloaded.xml.njk diff --git a/demo/backend/navigation/behaviors/actions/reload/index.xml.njk b/demo/backend/navigation/behaviors/actions/reload/index.xml.njk index 74f2b714a..10950cd64 100644 --- a/demo/backend/navigation/behaviors/actions/reload/index.xml.njk +++ b/demo/backend/navigation/behaviors/actions/reload/index.xml.njk @@ -20,7 +20,7 @@ hv_button_behavior: "back" {{ description('Tapping the button below will reload this screen with a new URL') }} {% call button('Reload different screen') -%} - + {%- endcall %} {{ description('Tapping the button below will reload the root navigation hierarchy with the "Advanced" tab selected') }} diff --git a/demo/backend/navigation/behaviors/actions/reload/reloaded.xml.njk b/demo/backend/navigation/behaviors/actions/reload/reloaded.xml.njk new file mode 100644 index 000000000..746da0ba2 --- /dev/null +++ b/demo/backend/navigation/behaviors/actions/reload/reloaded.xml.njk @@ -0,0 +1,12 @@ +--- +permalink: "/navigation/behaviors/actions/reload/reloaded.xml" +hv_title: "Reload - Updated" +hv_button_behavior: "back" +--- +{% extends 'templates/scrollview.xml.njk' %} +{% from 'macros/description/index.xml.njk' import description %} +{% from 'macros/button/index.xml.njk' import button %} + +{% block content %} + {{ description('Changed Screen') }} +{% endblock %} From f9def748ac021bb8e3027cf279301d1d537a87d7 Mon Sep 17 00:00:00 2001 From: Hardin Gray Date: Wed, 26 Feb 2025 14:37:59 -0500 Subject: [PATCH 2/2] chore: remove unneeded example --- .../behaviors/actions/reload/index.xml.njk | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/demo/backend/navigation/behaviors/actions/reload/index.xml.njk b/demo/backend/navigation/behaviors/actions/reload/index.xml.njk index 10950cd64..01c66aa1f 100644 --- a/demo/backend/navigation/behaviors/actions/reload/index.xml.njk +++ b/demo/backend/navigation/behaviors/actions/reload/index.xml.njk @@ -22,16 +22,4 @@ hv_button_behavior: "back" {% call button('Reload different screen') -%} {%- endcall %} - - {{ description('Tapping the button below will reload the root navigation hierarchy with the "Advanced" tab selected') }} - {% call button('Reload hierarchy') -%} - {# close this view #} - - - {# invoke the behavior defined on /backend/index.xml #} - - {%- endcall %} {% endblock %}