diff options
| author | Marie <marie@kaifa.ch> | 2024-01-01 20:34:18 +0100 |
|---|---|---|
| committer | Marie <marie@kaifa.ch> | 2024-01-01 20:34:18 +0100 |
| commit | c9ca1dd3f13cfe6211fbc313d84f44e26a424dd7 (patch) | |
| tree | 12f367662a0e03915be2f2dd6a39b2354831e9a0 /packages/frontend/src/components/MkNoteSub.vue | |
| parent | merge: Bring note style closer to Firefish (#294) (diff) | |
| download | sharkey-c9ca1dd3f13cfe6211fbc313d84f44e26a424dd7.tar.gz sharkey-c9ca1dd3f13cfe6211fbc313d84f44e26a424dd7.tar.bz2 sharkey-c9ca1dd3f13cfe6211fbc313d84f44e26a424dd7.zip | |
upd: add boost settings
Diffstat (limited to 'packages/frontend/src/components/MkNoteSub.vue')
| -rw-r--r-- | packages/frontend/src/components/MkNoteSub.vue | 64 |
1 files changed, 34 insertions, 30 deletions
diff --git a/packages/frontend/src/components/MkNoteSub.vue b/packages/frontend/src/components/MkNoteSub.vue index d96785a2d9..2d2044ce07 100644 --- a/packages/frontend/src/components/MkNoteSub.vue +++ b/packages/frontend/src/components/MkNoteSub.vue @@ -269,39 +269,43 @@ watch(() => props.expandAllCws, (expandAllCws) => { }); function boostVisibility() { - os.popupMenu([ - { - type: 'button', - icon: 'ph-globe-hemisphere-west ph-bold ph-lg', - text: i18n.ts._visibility['public'], - action: () => { - renote('public'); - }, - }, - { - type: 'button', - icon: 'ph-house ph-bold ph-lg', - text: i18n.ts._visibility['home'], - action: () => { - renote('home'); + if (!defaultStore.state.showVisibilitySelectorOnBoost) { + renote(defaultStore.state.visibilityOnBoost); + } else { + os.popupMenu([ + { + type: 'button', + icon: 'ph-globe-hemisphere-west ph-bold ph-lg', + text: i18n.ts._visibility['public'], + action: () => { + renote('public'); + }, }, - }, - { - type: 'button', - icon: 'ph-lock ph-bold ph-lg', - text: i18n.ts._visibility['followers'], - action: () => { - renote('followers'); + { + type: 'button', + icon: 'ph-house ph-bold ph-lg', + text: i18n.ts._visibility['home'], + action: () => { + renote('home'); + }, }, - }, - { - type: 'button', - icon: 'ph-planet ph-bold ph-lg', - text: i18n.ts._timelines.local, - action: () => { - renote('local'); + { + type: 'button', + icon: 'ph-lock ph-bold ph-lg', + text: i18n.ts._visibility['followers'], + action: () => { + renote('followers'); + }, }, - }], renoteButton.value); + { + type: 'button', + icon: 'ph-planet ph-bold ph-lg', + text: i18n.ts._timelines.local, + action: () => { + renote('local'); + }, + }], renoteButton.value); + } } function renote(visibility: 'public' | 'home' | 'followers' | 'specified' | 'local') { |