forked from trent_larson/crowd-funder-for-time-pwa
Fix accessibility and image deletion issues in AccountViewView
- Fix aria-hidden conflict on trash can icon by wrapping in proper button element - Fix image deletion API endpoint by extracting image ID from full URL - Improve 404 error handling to clear local image reference when image already deleted - Resolve accessibility warning and prevent invalid API calls
This commit is contained in:
@@ -50,14 +50,16 @@
|
||||
tabindex="0"
|
||||
@click="emitShowLargeIdenticonUrl"
|
||||
/>
|
||||
<font-awesome
|
||||
icon="trash-can"
|
||||
<button
|
||||
class="text-red-500 fa-fw ml-8 mt-8 w-12 h-12"
|
||||
role="button"
|
||||
aria-label="Delete profile image"
|
||||
tabindex="0"
|
||||
@click="deleteImage"
|
||||
/>
|
||||
>
|
||||
<font-awesome
|
||||
icon="trash-can"
|
||||
aria-hidden="true"
|
||||
/>
|
||||
</button>
|
||||
</span>
|
||||
<div v-else class="text-center">
|
||||
<template v-if="isRegistered">
|
||||
|
||||
Reference in New Issue
Block a user