gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-merchant-backoffice] branch master updated: do not show instance


From: gnunet
Subject: [taler-merchant-backoffice] branch master updated: do not show instance links if could not login into instance
Date: Wed, 14 Sep 2022 17:14:44 +0200

This is an automated email from the git hooks/post-receive script.

sebasjm pushed a commit to branch master
in repository merchant-backoffice.

The following commit(s) were added to refs/heads/master by this push:
     new 9e38e05  do not show instance links if could not login into instance
9e38e05 is described below

commit 9e38e057c53c1411922f4897756d3f977c3119a8
Author: Sebastian <sebasjm@gmail.com>
AuthorDate: Wed Sep 14 12:14:36 2022 -0300

    do not show instance links if could not login into instance
---
 .../src/components/menu/SideBar.tsx                | 130 +++++++++++----------
 1 file changed, 67 insertions(+), 63 deletions(-)

diff --git a/packages/merchant-backoffice/src/components/menu/SideBar.tsx 
b/packages/merchant-backoffice/src/components/menu/SideBar.tsx
index 231ac7d..e9c5ef8 100644
--- a/packages/merchant-backoffice/src/components/menu/SideBar.tsx
+++ b/packages/merchant-backoffice/src/components/menu/SideBar.tsx
@@ -81,69 +81,73 @@ export function Sidebar({
         </div>
       </div>
       <div class="menu is-menu-main">
-        <p class="menu-label">
-          <Translate>Instance</Translate>
-        </p>
-        <ul class="menu-list">
-          <li>
-            <a href={"/update"} class="has-icon">
-              <span class="icon">
-                <i class="mdi mdi-square-edit-outline" />
-              </span>
-              <span class="menu-item-label">
-                <Translate>Settings</Translate>
-              </span>
-            </a>
-          </li>
-          <li>
-            <a href={"/orders"} class="has-icon">
-              <span class="icon">
-                <i class="mdi mdi-cash-register" />
-              </span>
-              <span class="menu-item-label">
-                <Translate>Orders</Translate>
-              </span>
-            </a>
-          </li>
-          <li>
-            <a href={"/products"} class="has-icon">
-              <span class="icon">
-                <i class="mdi mdi-shopping" />
-              </span>
-              <span class="menu-item-label">
-                <Translate>Products</Translate>
-              </span>
-            </a>
-          </li>
-          <li>
-            <a href={"/transfers"} class="has-icon">
-              <span class="icon">
-                <i class="mdi mdi-bank" />
-              </span>
-              <span class="menu-item-label">
-                <Translate>Transfers</Translate>
-              </span>
-            </a>
-          </li>
-          <li>
-            <a href={"/reserves"} class="has-icon">
-              <span class="icon">
-                <i class="mdi mdi-cash" />
-              </span>
-              <span class="menu-item-label">Reserves</span>
-            </a>
-          </li>
-          {needKYC && (
-            <li>
-              <a href={"/kyc"} class="has-icon">
-                <span class="icon">
-                  <i class="mdi mdi-account-check" />
-                </span>
-                <span class="menu-item-label">KYC Status</span>
-              </a>
-            </li>
-          )}
-        </ul>
+        {instance ? (
+          <Fragment>
+            <p class="menu-label">
+              <Translate>Instance</Translate>
+            </p>
+            <ul class="menu-list">
+              <li>
+                <a href={"/update"} class="has-icon">
+                  <span class="icon">
+                    <i class="mdi mdi-square-edit-outline" />
+                  </span>
+                  <span class="menu-item-label">
+                    <Translate>Settings</Translate>
+                  </span>
+                </a>
+              </li>
+              <li>
+                <a href={"/orders"} class="has-icon">
+                  <span class="icon">
+                    <i class="mdi mdi-cash-register" />
+                  </span>
+                  <span class="menu-item-label">
+                    <Translate>Orders</Translate>
+                  </span>
+                </a>
+              </li>
+              <li>
+                <a href={"/products"} class="has-icon">
+                  <span class="icon">
+                    <i class="mdi mdi-shopping" />
+                  </span>
+                  <span class="menu-item-label">
+                    <Translate>Products</Translate>
+                  </span>
+                </a>
+              </li>
+              <li>
+                <a href={"/transfers"} class="has-icon">
+                  <span class="icon">
+                    <i class="mdi mdi-bank" />
+                  </span>
+                  <span class="menu-item-label">
+                    <Translate>Transfers</Translate>
+                  </span>
+                </a>
+              </li>
+              <li>
+                <a href={"/reserves"} class="has-icon">
+                  <span class="icon">
+                    <i class="mdi mdi-cash" />
+                  </span>
+                  <span class="menu-item-label">Reserves</span>
+                </a>
+              </li>
+              {needKYC && (
+                <li>
+                  <a href={"/kyc"} class="has-icon">
+                    <span class="icon">
+                      <i class="mdi mdi-account-check" />
+                    </span>
+                    <span class="menu-item-label">KYC Status</span>
+                  </a>
+                </li>
+              )}
+            </ul>
+          </Fragment>
+        ) : undefined}
         <p class="menu-label">
           <Translate>Connection</Translate>
         </p>

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]