summaryrefslogtreecommitdiff
path: root/packages/client/src/scripts/get-note-menu.ts
diff options
context:
space:
mode:
authorAndreas Nedbal <andreas.nedbal@in2code.de>2022-05-07 07:19:15 +0200
committerGitHub <noreply@github.com>2022-05-07 14:19:15 +0900
commita975a0971cb0aa3b684204f910fba8b714c0f5fb (patch)
tree7feeaeae17c8f0debf42e301c20912adb1afa594 /packages/client/src/scripts/get-note-menu.ts
parentrefactor(client): refactor settings/theme/manage to use Composition API (#8596) (diff)
downloadsharkey-a975a0971cb0aa3b684204f910fba8b714c0f5fb.tar.gz
sharkey-a975a0971cb0aa3b684204f910fba8b714c0f5fb.tar.bz2
sharkey-a975a0971cb0aa3b684204f910fba8b714c0f5fb.zip
fix(client): fix lint issues in scripts (#8621)
Diffstat (limited to 'packages/client/src/scripts/get-note-menu.ts')
-rw-r--r--packages/client/src/scripts/get-note-menu.ts14
1 files changed, 7 insertions, 7 deletions
diff --git a/packages/client/src/scripts/get-note-menu.ts b/packages/client/src/scripts/get-note-menu.ts
index a50001b24e..aeb09ef97a 100644
--- a/packages/client/src/scripts/get-note-menu.ts
+++ b/packages/client/src/scripts/get-note-menu.ts
@@ -83,8 +83,8 @@ export function getNoteMenu(props: {
function togglePin(pin: boolean): void {
os.apiWithDialog(pin ? 'i/pin' : 'i/unpin', {
noteId: appearNote.id
- }, undefined, null, e => {
- if (e.id === '72dab508-c64d-498f-8740-a8eec1ba385a') {
+ }, undefined, null, res => {
+ if (res.id === '72dab508-c64d-498f-8740-a8eec1ba385a') {
os.alert({
type: 'error',
text: i18n.ts.pinLimitExceeded
@@ -209,7 +209,7 @@ export function getNoteMenu(props: {
text: i18n.ts.clip,
action: () => clip()
},
- (appearNote.userId != $i.id) ? statePromise.then(state => state.isWatching ? {
+ (appearNote.userId !== $i.id) ? statePromise.then(state => state.isWatching ? {
icon: 'fas fa-eye-slash',
text: i18n.ts.unwatch,
action: () => toggleWatch(false)
@@ -227,7 +227,7 @@ export function getNoteMenu(props: {
text: i18n.ts.muteThread,
action: () => toggleThreadMute(true)
}),
- appearNote.userId == $i.id ? ($i.pinnedNoteIds || []).includes(appearNote.id) ? {
+ appearNote.userId === $i.id ? ($i.pinnedNoteIds || []).includes(appearNote.id) ? {
icon: 'fas fa-thumbtack',
text: i18n.ts.unpin,
action: () => togglePin(false)
@@ -246,7 +246,7 @@ export function getNoteMenu(props: {
}]
: []
),*/
- ...(appearNote.userId != $i.id ? [
+ ...(appearNote.userId !== $i.id ? [
null,
{
icon: 'fas fa-exclamation-circle',
@@ -261,9 +261,9 @@ export function getNoteMenu(props: {
}]
: []
),
- ...(appearNote.userId == $i.id || $i.isModerator || $i.isAdmin ? [
+ ...(appearNote.userId === $i.id || $i.isModerator || $i.isAdmin ? [
null,
- appearNote.userId == $i.id ? {
+ appearNote.userId === $i.id ? {
icon: 'fas fa-edit',
text: i18n.ts.deleteAndEdit,
action: delEdit