refactor: modals

This commit is contained in:
liyasthomas
2021-07-09 22:49:45 +05:30
parent 08d0765cfb
commit c7062ad613
41 changed files with 712 additions and 664 deletions

View File

@@ -7,21 +7,24 @@
</div>
</template>
<template #body>
<label for="selectLabelGqlEdit">{{ $t("label") }}</label>
<input
id="selectLabelGqlEdit"
v-model="name"
class="input"
type="text"
:placeholder="editingCollection.name"
@keyup.enter="saveCollection"
/>
<div class="px-2 flex flex-col">
<label for="selectLabelGqlEdit" class="px-4 font-semibold pb-4 text-xs">
{{ $t("label") }}
</label>
<input
id="selectLabelGqlEdit"
v-model="name"
class="input"
type="text"
:placeholder="editingCollection.name"
@keyup.enter="saveCollection"
/>
</div>
</template>
<template #footer>
<span></span>
<span>
<ButtonSecondary :label="$t('cancel')" @click.native="hideModal" />
<ButtonPrimary :label="$t('save')" @click.native="saveCollection" />
<ButtonSecondary :label="$t('cancel')" @click.native="hideModal" />
</span>
</template>
</SmartModal>