diff --git a/packages/frontend/src/components/global/MkTip.vue b/packages/frontend/src/components/global/MkTip.vue
index 384511a0ed..afe204cfcb 100644
--- a/packages/frontend/src/components/global/MkTip.vue
+++ b/packages/frontend/src/components/global/MkTip.vue
@@ -7,7 +7,10 @@ SPDX-License-Identifier: AGPL-3.0-only
{{ i18n.ts.tip }}:
-
{{ i18n.ts.gotIt }}
+
+ {{ i18n.ts.gotIt }}
+
+
@@ -15,6 +18,8 @@ SPDX-License-Identifier: AGPL-3.0-only
import { i18n } from '@/i18n.js';
import { store } from '@/store.js';
import MkButton from '@/components/MkButton.vue';
+import * as os from '@/os.js';
+import { hideAllTips } from '@/store.js';
const props = withDefaults(defineProps<{
k: keyof (typeof store['s']['tips']);
@@ -29,6 +34,18 @@ function closeTip() {
[props.k]: true,
});
}
+
+function showMenu(ev: MouseEvent) {
+ os.popupMenu([{
+ icon: 'ti ti-bulb-off',
+ text: i18n.ts.hideAllTips,
+ danger: true,
+ action: () => {
+ hideAllTips();
+ os.success();
+ },
+ }], ev.currentTarget ?? ev.target);
+}