summaryrefslogtreecommitdiff
path: root/packages/frontend/src/components/MkNoteSub.vue
diff options
context:
space:
mode:
authorMarie <marie@kaifa.ch>2024-01-01 20:34:18 +0100
committerMarie <marie@kaifa.ch>2024-01-01 20:34:18 +0100
commitc9ca1dd3f13cfe6211fbc313d84f44e26a424dd7 (patch)
tree12f367662a0e03915be2f2dd6a39b2354831e9a0 /packages/frontend/src/components/MkNoteSub.vue
parentmerge: Bring note style closer to Firefish (#294) (diff)
downloadsharkey-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.vue64
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') {