mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-06-25 17:10:43 +00:00
Update room.core.vue
This commit is contained in:
parent
b81b9e1da7
commit
222d914544
1 changed files with 11 additions and 0 deletions
|
|
@ -99,6 +99,7 @@ import { cm, getHex, getRgb, WORLD_SCALE } from 'misskey-world/src/utility.js';
|
|||
import { GRAPHICS_QUALITY } from 'misskey-world-engine/src/utility.js';
|
||||
import { FURNITURE_SCHEMA_DEFS } from 'misskey-world/src/room/furniture-schema-defs.js';
|
||||
import { useInterval } from '@@/js/use-interval.js';
|
||||
import { url } from '@@/js/config.js';
|
||||
import XEnvOptions from './room.env-options.vue';
|
||||
import type { RoomControllerOptions } from '@/world/room/controller.js';
|
||||
import type { RoomState, RoomAttachments } from 'misskey-world/src/room/type.js';
|
||||
|
|
@ -598,6 +599,16 @@ function showOtherMenu(ev: PointerEvent) {
|
|||
props.room.name = result;
|
||||
});
|
||||
},
|
||||
}, {
|
||||
text: i18n.ts.share,
|
||||
icon: 'ti ti-share',
|
||||
action: async () => {
|
||||
os.post({
|
||||
initialText: `${props.room.name} by @${props.room.user.username}
|
||||
${url}/rooms/${props.room.id}`,
|
||||
instant: true,
|
||||
});
|
||||
},
|
||||
}, {
|
||||
type: 'divider',
|
||||
}, {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue