Skip to content

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

chore: update the pop notification in project page (#9116)

ecmadao4e68aa757485
diff --git a/frontend/src/components/BytebaseLogo.vue b/frontend/src/components/BytebaseLogo.vue
index 2322c7c813..6ed2e0a0fc 100644
--- a/frontend/src/components/BytebaseLogo.vue
+++ b/frontend/src/components/BytebaseLogo.vue
@@ -11,7 +11,7 @@
<img
v-if="customBrandingLogo"
:src="customBrandingLogo"
- class="w-auto max-w-full h-8 md:max-h-10"
+ class="w-auto max-w-full h-8 md:h-10"
/>
<img
diff --git a/frontend/src/views/ProjectDetail.vue b/frontend/src/views/ProjectDetail.vue
index 4861f8f450..1f3a4ce19b 100644
--- a/frontend/src/views/ProjectDetail.vue
+++ b/frontend/src/views/ProjectDetail.vue
@@ -155,7 +155,7 @@ const databaseV1List = computed(() => {
});
const cachedNotifiedActivities = useLocalStorage<string[]>(
- "bb.project.activities",
+ `bb.project.${props.projectSlug}.activities`,
[]
);
@@ -166,10 +166,10 @@ onMounted(() => {
.fetchActivityList({
pageSize: 1,
order: "desc",
+ action: [LogEntity_Action.ACTION_PROJECT_REPOSITORY_PUSH],
resource: project.value.name,
})
.then((resp) => {
- const firstOpening = cachedNotifiedActivities.value.length == 0;
for (const activity of resp.logEntities) {
if (cachedNotifiedActivities.value.includes(activity.name)) {
continue;
@@ -179,20 +179,15 @@ onMounted(() => {
cachedNotifiedActivities.value.shift();
}
- if (
- !firstOpening &&
- activity.action === LogEntity_Action.ACTION_PROJECT_REPOSITORY_PUSH
- ) {
- pushNotification({
- module: "bytebase",
- style: "INFO",
- title: activityName(activity.action),
- manualHide: true,
- link: `/project/${projectV1Slug(project.value)}#activities`,
- linkTitle: t("common.view"),
- });
- break;
- }
+ pushNotification({
+ module: "bytebase",
+ style: "INFO",
+ title: activityName(activity.action),
+ manualHide: true,
+ link: `/project/${projectV1Slug(project.value)}#activities`,
+ linkTitle: t("common.view"),
+ });
+ break;
}
});
});