fix: lint
This commit is contained in:
parent
b87142d2f7
commit
0197d3354a
2 changed files with 4 additions and 0 deletions
|
@ -91,6 +91,7 @@ import MkSubNoteContent from '@/components/MkSubNoteContent.vue';
|
||||||
import MkCwButton from '@/components/MkCwButton.vue';
|
import MkCwButton from '@/components/MkCwButton.vue';
|
||||||
import { notePage } from '@/filters/note.js';
|
import { notePage } from '@/filters/note.js';
|
||||||
import * as os from '@/os.js';
|
import * as os from '@/os.js';
|
||||||
|
import * as sound from '@/scripts/sound.js';
|
||||||
import { i18n } from '@/i18n.js';
|
import { i18n } from '@/i18n.js';
|
||||||
import { $i } from '@/account.js';
|
import { $i } from '@/account.js';
|
||||||
import { userPage } from '@/filters/user.js';
|
import { userPage } from '@/filters/user.js';
|
||||||
|
@ -193,6 +194,7 @@ function reply(viaKeyboard = false): void {
|
||||||
function react(viaKeyboard = false): void {
|
function react(viaKeyboard = false): void {
|
||||||
pleaseLogin();
|
pleaseLogin();
|
||||||
showMovedDialog();
|
showMovedDialog();
|
||||||
|
sound.play('reaction');
|
||||||
if (props.note.reactionAcceptance === 'likeOnly') {
|
if (props.note.reactionAcceptance === 'likeOnly') {
|
||||||
os.api('notes/like', {
|
os.api('notes/like', {
|
||||||
noteId: props.note.id,
|
noteId: props.note.id,
|
||||||
|
|
|
@ -99,6 +99,7 @@ import MkSubNoteContent from '@/components/MkSubNoteContent.vue';
|
||||||
import MkCwButton from '@/components/MkCwButton.vue';
|
import MkCwButton from '@/components/MkCwButton.vue';
|
||||||
import { notePage } from '@/filters/note.js';
|
import { notePage } from '@/filters/note.js';
|
||||||
import * as os from '@/os.js';
|
import * as os from '@/os.js';
|
||||||
|
import * as sound from '@/scripts/sound.js';
|
||||||
import { i18n } from '@/i18n.js';
|
import { i18n } from '@/i18n.js';
|
||||||
import { $i } from '@/account.js';
|
import { $i } from '@/account.js';
|
||||||
import { userPage } from '@/filters/user.js';
|
import { userPage } from '@/filters/user.js';
|
||||||
|
@ -202,6 +203,7 @@ function reply(viaKeyboard = false): void {
|
||||||
function react(viaKeyboard = false): void {
|
function react(viaKeyboard = false): void {
|
||||||
pleaseLogin();
|
pleaseLogin();
|
||||||
showMovedDialog();
|
showMovedDialog();
|
||||||
|
sound.play('reaction');
|
||||||
if (props.note.reactionAcceptance === 'likeOnly') {
|
if (props.note.reactionAcceptance === 'likeOnly') {
|
||||||
os.api('notes/like', {
|
os.api('notes/like', {
|
||||||
noteId: props.note.id,
|
noteId: props.note.id,
|
||||||
|
|
Loading…
Reference in a new issue