perf: template literals

This commit is contained in:
liyasthomas
2021-09-18 16:09:58 +05:30
parent 4236d1179c
commit e1e763575d
64 changed files with 425 additions and 333 deletions

View File

@@ -1,5 +1,5 @@
<template>
<SmartModal v-if="show" :title="$t('collection.new')" @close="hideModal">
<SmartModal v-if="show" :title="`${$t('collection.new')}`" @close="hideModal">
<template #body>
<div class="flex flex-col px-2">
<input
@@ -20,11 +20,11 @@
<template #footer>
<span>
<ButtonPrimary
:label="$t('action.save')"
:label="`${$t('action.save')}`"
@click.native="addNewCollection"
/>
<ButtonSecondary
:label="$t('action.cancel')"
:label="`${$t('action.cancel')}`"
@click.native="hideModal"
/>
</span>
@@ -49,7 +49,7 @@ export default defineComponent({
methods: {
addNewCollection() {
if (!this.name) {
this.$toast.error(this.$t("collection.invalid_name").toString(), {
this.$toast.error(`${this.$t("collection.invalid_name")}`, {
icon: "error_outline",
})
return