Skip to content

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

request to create

天舟6479acf99f9a
diff --git a/frontend/src/components/QuickActionPanel.vue b/frontend/src/components/QuickActionPanel.vue
index 890a3fe3c7..2e0034a7ef 100644
--- a/frontend/src/components/QuickActionPanel.vue
+++ b/frontend/src/components/QuickActionPanel.vue
@@ -108,7 +108,7 @@
</div>
<div
- v-if="quickAction == 'quickaction.bytebase.database.create'"
+ v-if="quickAction == 'quickaction.bytebase.database.request'"
class="flex flex-col items-center w-28"
>
<router-link
@@ -129,7 +129,7 @@
d="M4 7v10c0 2.21 3.582 4 8 4s8-1.79 8-4V7M4 7c0 2.21 3.582 4 8 4s8-1.79 8-4M4 7c0-2.21 3.582-4 8-4s8 1.79 8 4m0 5c0 2.21-3.582 4-8 4s-8-1.79-8-4"
></path>
</svg>
- </router-link>
+ </button>
<h3
class="mt-1 text-base text-center font-normal text-main tracking-tight"
>
@@ -137,33 +137,6 @@
</h3>
</div>
- <div
- v-if="quickAction == 'quickaction.bytebase.database.create'"
- class="flex flex-col items-center w-28"
- >
- <router-link to="/db/new" class="p-3 btn-icon-primary">
- <svg
- class="w-6 h-6"
- 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="M12 6v6m0 0v6m0-6h6m-6 0H6"
- ></path>
- </svg>
- </router-link>
- <h3
- class="mt-1 text-base text-center font-normal text-main tracking-tight"
- >
- Create DB
- </h3>
- </div>
-
<div
v-if="quickAction == 'quickaction.bytebase.database.schema.update'"
class="flex flex-col items-center w-28"
diff --git a/frontend/src/router/index.ts b/frontend/src/router/index.ts
index 7e99420a46..2bd1290969 100644
--- a/frontend/src/router/index.ts
+++ b/frontend/src/router/index.ts
@@ -85,7 +85,7 @@ const routes: Array<RouteRecordRaw> = [
"quickaction.bytebase.instance.create",
"quickaction.bytebase.user.manage",
"quickaction.bytebase.database.schema.update",
- "quickaction.bytebase.database.create",
+ "quickaction.bytebase.database.request",
"quickaction.bytebase.database.troubleshoot",
],
],
@@ -94,7 +94,7 @@ const routes: Array<RouteRecordRaw> = [
[
"quickaction.bytebase.instance.create",
"quickaction.bytebase.database.schema.update",
- "quickaction.bytebase.database.create",
+ "quickaction.bytebase.database.request",
"quickaction.bytebase.database.troubleshoot",
],
],
@@ -103,7 +103,7 @@ const routes: Array<RouteRecordRaw> = [
[
"quickaction.bytebase.database.troubleshoot",
"quickaction.bytebase.database.schema.update",
- "quickaction.bytebase.database.create",
+ "quickaction.bytebase.database.request",
],
],
]),
@@ -307,24 +307,22 @@ const routes: Array<RouteRecordRaw> = [
[
"OWNER",
[
- "quickaction.bytebase.database.create",
"quickaction.bytebase.database.schema.update",
- "quickaction.bytebase.database.create",
+ "quickaction.bytebase.database.request",
],
],
[
"DBA",
[
- "quickaction.bytebase.database.create",
"quickaction.bytebase.database.schema.update",
- "quickaction.bytebase.database.create",
+ "quickaction.bytebase.database.request",
],
],
[
"DEVELOPER",
[
"quickaction.bytebase.database.schema.update",
- "quickaction.bytebase.database.create",
+ "quickaction.bytebase.database.request",
"quickaction.bytebase.database.troubleshoot",
],
],
diff --git a/frontend/src/types/bytebase.ts b/frontend/src/types/bytebase.ts
index 984b592347..bcdbdd7f3e 100644
--- a/frontend/src/types/bytebase.ts
+++ b/frontend/src/types/bytebase.ts
@@ -616,8 +616,7 @@ export type EnvironmentQuickActionType =
export type InstanceQuickActionType = "quickaction.bytebase.instance.create";
export type UserQuickActionType = "quickaction.bytebase.user.manage";
export type DatabaseQuickActionType =
- | "quickaction.bytebase.database.create"
- | "quickaction.bytebase.database.create"
+ | "quickaction.bytebase.database.request"
| "quickaction.bytebase.database.schema.update"
| "quickaction.bytebase.database.troubleshoot";