Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

Optimize change plan/role dev bar. Also allow demo veresion to switch plan

天舟6a36f01fd312
diff --git a/frontend/src/views/DashboardHeader.vue b/frontend/src/views/DashboardHeader.vue
index b30e8b2fcc..7605f27c0c 100644
--- a/frontend/src/views/DashboardHeader.vue
+++ b/frontend/src/views/DashboardHeader.vue
@@ -41,10 +41,24 @@
<div>
<div class="flex items-center space-x-3">
<div
- v-if="isDev"
+ v-if="isDevOrDemo"
class="hidden md:flex sm:flex-row items-center space-x-2 text-sm"
>
- <span class="hidden lg:block textlabel">Plan:</span>
+ <span class="hidden lg:block"
+ ><svg
+ class="w-5 h-5 -mr-1"
+ fill="none"
+ stroke="currentColor"
+ viewBox="0 0 24 24"
+ xmlns="http://www.w3.org/2000/svg"
+ >
+ <path
+ stroke-linecap="round"
+ stroke-linejoin="round"
+ stroke-width="2"
+ d="M3 3h2l.4 2M7 13h10l4-8H5.4M7 13L5.4 5M7 13l-2.293 2.293c-.63.63-.184 1.707.707 1.707H17m0 0a2 2 0 100 4 2 2 0 000-4zm-8 2a2 2 0 11-4 0 2 2 0 014 0z"
+ ></path></svg
+ ></span>
<div
v-if="currentPlan != 0"
class="bar-link"
@@ -74,7 +88,22 @@
v-if="isDevOrDemo"
class="hidden md:flex sm:flex-row items-center space-x-2 text-sm"
>
- <span class="hidden lg:block textlabel">Role:</span>
+ <span class="hidden lg:block"
+ ><svg
+ class="w-5 h-5 -mr-1"
+ fill="none"
+ stroke="currentColor"
+ viewBox="0 0 24 24"
+ xmlns="http://www.w3.org/2000/svg"
+ >
+ <path
+ stroke-linecap="round"
+ stroke-linejoin="round"
+ stroke-width="2"
+ d="M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"
+ ></path>
+ </svg>
+ </span>
<div
v-if="currentUser.role != 'OWNER'"
class="bar-link"