Compare commits

..

No commits in common. "0252d7d7f22c7a6b2396ce8a9aede59b72b2c1c8" and "0ca65c44a2c5e0fd5ef1a67de1a32687e3b37cef" have entirely different histories.

View file

@ -695,7 +695,7 @@ function closeImage() {
* งกนยนยนการลบร
* @param id ปภาพ
*/
function deletePhoto(id: string, isActive: boolean) {
function deletePhoto(id: string) {
dialogRemove(
$q,
async () => {
@ -706,10 +706,6 @@ function deletePhoto(id: string, isActive: boolean) {
.delete(config.API.orgProfileAvatarbyType(empType.value) + `/${id}`)
.then(async () => {
await getImage();
if (isActive) {
activeImage.value = null;
await fetchDataPersonal();
}
})
.catch((e) => {
messageError($q, e);
@ -1219,16 +1215,13 @@ onMounted(async () => {
icon="delete"
unelevated
dense
@click="deletePhoto(n.id, n.isActive)"
@click="deletePhoto(n.id)"
class="bg-white"
style="color: #ff8080"
>
<q-tooltip>ลบรปภาพ</q-tooltip>
</q-btn>
</div>
<div class="absolute-top-right" v-if="n.isActive">
<q-icon name="star" color="yellow" size="24px" />
</div>
</q-img>
</div>
</div>
@ -1236,12 +1229,7 @@ onMounted(async () => {
</q-card-section>
<q-separator />
<q-card-actions align="right">
<q-btn
@click="selectAvatarHistory"
color="public"
label="เลือกรูปภาพ"
:disable="images.length == 0"
>
<q-btn @click="selectAvatarHistory" color="public" label="เลือกรูปภาพ">
<q-tooltip>เลอกรปภาพ</q-tooltip>
</q-btn>
</q-card-actions>