refactor(client): better semantics

This commit is contained in:
syuilo
2022-01-28 11:53:12 +09:00
parent 57ec04d9ec
commit b946d89ec1
32 changed files with 50 additions and 50 deletions

View File

@@ -128,7 +128,7 @@ export default defineComponent({
text: this.$ts.messagingWithGroup,
icon: 'fas fa-users',
action: () => { this.startGroup() }
}], ev.currentTarget || ev.target);
}], ev.currentTarget ?? ev.target);
},
async startUser() {

View File

@@ -154,7 +154,7 @@ export default defineComponent({
},
chooseFile(e) {
selectFile(e.currentTarget || e.target, this.$ts.selectFile).then(file => {
selectFile(e.currentTarget ?? e.target, this.$ts.selectFile).then(file => {
this.file = file;
});
},
@@ -214,7 +214,7 @@ export default defineComponent({
},
async insertEmoji(ev) {
os.openEmojiPicker(ev.currentTarget || ev.target, {}, this.$refs.text);
os.openEmojiPicker(ev.currentTarget ?? ev.target, {}, this.$refs.text);
}
}
});

View File

@@ -335,7 +335,7 @@ const Component = defineComponent({
popout(path);
this.$router.back();
},
}], ev.currentTarget || ev.target);
}], ev.currentTarget ?? ev.target);
}
}
});