Refactor: Minor code refactoring in accordance with Vue.js best practices (#368)
This commit is contained in:
committed by
Pranav Raj S
parent
17587d8a0c
commit
87fb1adab1
@@ -27,7 +27,7 @@
|
||||
class="icon ion-happy-outline"
|
||||
:class="{ active: showEmojiPicker }"
|
||||
@click="toggleEmojiPicker()"
|
||||
></i>
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div class="reply-box__bottom">
|
||||
@@ -65,7 +65,7 @@
|
||||
'ion-android-send': !isPrivate,
|
||||
'ion-android-lock': isPrivate,
|
||||
}"
|
||||
></i>
|
||||
/>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
@@ -114,7 +114,7 @@ export default {
|
||||
return;
|
||||
}
|
||||
const isSlashCommand = val[0] === '/';
|
||||
const hasNextWord = val.indexOf(' ') > -1;
|
||||
const hasNextWord = val.includes(' ');
|
||||
const isShortCodeActive = isSlashCommand && !hasNextWord;
|
||||
if (isShortCodeActive) {
|
||||
this.showCannedResponsesList = true;
|
||||
|
||||
Reference in New Issue
Block a user