fix: sonar qube - Add an "alt" attribute to this image.

This commit is contained in:
Cindy Chang
2024-07-16 09:11:13 +08:00
parent f6c130f46d
commit 2517fb07af
2 changed files with 4 additions and 3 deletions

View File

@@ -16,13 +16,13 @@
<li id="btn_mang_ur_acct" <li id="btn_mang_ur_acct"
class="w-full h-[40px] flex py-2 px-4 hover:text-[#000000] hover:bg-[#F1F5F9] cursor-pointer class="w-full h-[40px] flex py-2 px-4 hover:text-[#000000] hover:bg-[#F1F5F9] cursor-pointer
items-center"> items-center">
<span class="w-[24px] h-[24px] flex"><img src="@/assets/icon-head-black.svg"></span> <span class="w-[24px] h-[24px] flex"><img src="@/assets/icon-head-black.svg" alt="head-black"></span>
<span class="flex ml-[8px]">{{i18next.t("AcctMgmt.mangUrAcct")}}</span> <span class="flex ml-[8px]">{{i18next.t("AcctMgmt.mangUrAcct")}}</span>
</li> </li>
<li id="btn_logout_in_menu" <li id="btn_logout_in_menu"
class="w-full h-[40px] flex py-2 px-4 hover:text-[#000000] hover:bg-[#F1F5F9] cursor-pointer class="w-full h-[40px] flex py-2 px-4 hover:text-[#000000] hover:bg-[#F1F5F9] cursor-pointer
items-center" @click="onLogoutBtnClick"> items-center" @click="onLogoutBtnClick">
<span class="w-[24px] h-[24px] flex"><img src="@/assets/icon-logout.svg"></span> <span class="w-[24px] h-[24px] flex"><img src="@/assets/icon-logout.svg" alt="logout"></span>
<span class="flex ml-[8px]">{{i18next.t("AcctMgmt.Logout")}}</span> <span class="flex ml-[8px]">{{i18next.t("AcctMgmt.Logout")}}</span>
</li> </li>
</ul> </ul>

View File

@@ -4,7 +4,8 @@
<input id="input_search" class="w-full outline-0" :placeholder="i18next.t('AcctMgmt.Search')" <input id="input_search" class="w-full outline-0" :placeholder="i18next.t('AcctMgmt.Search')"
v-model="inputQuery" @keypress="handleKeyPressOfSearch" v-model="inputQuery" @keypress="handleKeyPressOfSearch"
/> />
<img src="@/assets/icon-search.svg" class="w-[17px] h-[17px] flex cursor-pointer" @click="onSearchClick"/> <img src="@/assets/icon-search.svg" class="w-[17px] h-[17px] flex cursor-pointer" @click="onSearchClick"
alt="search"/>
</div> </div>
</template> </template>