Commit eafe2f6c authored by narendraR's avatar narendraR Committed by Tim Plunkett
Browse files

Issue #3282692 by narendraR, hooroomoo, chrisfromredfin, bnjmnm, tim.plunkett:...

Issue #3282692 by narendraR, hooroomoo, chrisfromredfin, bnjmnm, tim.plunkett: Redundant image alt text for VBO/Pathauto etc
parent 45b11fbc
Loading
Loading
Loading
Loading
+0 −0

File changed.

Preview suppressed by a .gitattributes entry or the file's encoding is unsupported.

+0 −0

File changed.

Preview suppressed by a .gitattributes entry or the file's encoding is unsupported.

+2 −10
Original line number Diff line number Diff line
@@ -21,21 +21,13 @@

{#if typeof fieldProjectImages !== 'undefined' && fieldProjectImages.length}
  {#if fieldProjectImages[0].file.resource === 'image'}
    <img
      src={fieldProjectImages[0].file.uri}
      alt={fieldProjectImages[0].alt}
      on:error={showFallback}
    />
    <img src={fieldProjectImages[0].file.uri} alt="" on:error={showFallback} />
  {:else if (fieldProjectImages[0].file.resource = 'file')}
    <!-- Keeping this block for compatibility with the mockapi. -->
    {#await fetchEntity(fieldProjectImages[0].file.uri)}
      <span>...waiting</span>
    {:then file}
      <img
        src={file.url}
        alt={fieldProjectImages[0].alt}
        on:error={showFallback}
      />
      <img src={file.url} alt="" on:error={showFallback} />
    {:catch error}
      <span style="color: red">{error.message}</span>
    {/await}