changes
This commit is contained in:
@@ -390,7 +390,7 @@ async function submit() {
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="cell is-col-span-12">
|
<div class="cell is-col-span-12 is-flex is-justify-content-flex-end">
|
||||||
<button
|
<button
|
||||||
:class="['button is-primary', { 'is-loading': isPending }]"
|
:class="['button is-primary', { 'is-loading': isPending }]"
|
||||||
:disabled="!isDirty"
|
:disabled="!isDirty"
|
||||||
|
|||||||
@@ -192,7 +192,7 @@ async function submit() {
|
|||||||
<div
|
<div
|
||||||
v-if="uploadedImage"
|
v-if="uploadedImage"
|
||||||
class="relative"
|
class="relative"
|
||||||
style="border: 1px solid var(--bulma-grey)"
|
style="border: 1px solid var(--bulma-grey-80)"
|
||||||
>
|
>
|
||||||
<figure class="image is-128x128">
|
<figure class="image is-128x128">
|
||||||
<img :src="$buildFileUrl(uploadedImage.file)" />
|
<img :src="$buildFileUrl(uploadedImage.file)" />
|
||||||
@@ -244,7 +244,7 @@ async function submit() {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="cell is-col-span-12">
|
<div class="cell is-col-span-12 is-flex is-justify-content-flex-end">
|
||||||
<button
|
<button
|
||||||
:class="['button is-primary', { 'is-loading': isPending }]"
|
:class="['button is-primary', { 'is-loading': isPending }]"
|
||||||
:disabled="!body.product || !isDirty"
|
:disabled="!body.product || !isDirty"
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ import DataView from "~/components/datatable/DataView.vue";
|
|||||||
component: 'imports/AddProduct',
|
component: 'imports/AddProduct',
|
||||||
title: 'Tạo sản phẩm',
|
title: 'Tạo sản phẩm',
|
||||||
width: '90%',
|
width: '90%',
|
||||||
height: '600px',
|
height: 'auto',
|
||||||
},
|
},
|
||||||
}"
|
}"
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -7,22 +7,22 @@
|
|||||||
<span class="icon-text is-gap-1 is-align-items-center">
|
<span class="icon-text is-gap-1 is-align-items-center">
|
||||||
<span class="icon">
|
<span class="icon">
|
||||||
<Icon
|
<Icon
|
||||||
|
v-if="v.status === 'uploading'"
|
||||||
name="svg-spinners:180-ring-with-bg"
|
name="svg-spinners:180-ring-with-bg"
|
||||||
:size="22"
|
:size="22"
|
||||||
class="has-text-primary"
|
class="has-text-primary"
|
||||||
v-if="v.status === 'uploading'"
|
|
||||||
/>
|
/>
|
||||||
<Icon
|
<Icon
|
||||||
|
v-else-if="v.status === 'success'"
|
||||||
name="material-symbols:check-circle-rounded"
|
name="material-symbols:check-circle-rounded"
|
||||||
:size="22"
|
:size="22"
|
||||||
class="has-text-primary"
|
class="has-text-primary"
|
||||||
v-else-if="v.status === 'success'"
|
|
||||||
/>
|
/>
|
||||||
<Icon
|
<Icon
|
||||||
|
v-else-if="v.status === 'error'"
|
||||||
name="material-symbols:cancel-rounded"
|
name="material-symbols:cancel-rounded"
|
||||||
:size="22"
|
:size="22"
|
||||||
class="has-text-danger"
|
class="has-text-danger"
|
||||||
v-else-if="v.status === 'error'"
|
|
||||||
/>
|
/>
|
||||||
</span>
|
</span>
|
||||||
<span>{{ v.name }}</span>
|
<span>{{ v.name }}</span>
|
||||||
|
|||||||
Reference in New Issue
Block a user