fix(DashboardHome): duplicate code

remove if condition and update to proper values to prevent
duplicates
This commit is contained in:
stroskler 2024-02-06 07:45:06 +00:00
parent 052cf17563
commit dcc48d3240
No known key found for this signature in database
GPG key ID: BFC1D7C45DD50847

View file

@ -56,8 +56,7 @@
</template>
<!-- Edit FriendlyName -->
<font-awesome-icon v-if="agent.friendlyname === '' && agent.friendlyname === ''"/>
<font-awesome-icon v-else class="ms-2" icon="pen-to-square" @click="showEditAgentFriendlynameDialog[agent.friendlyname] = !showEditAgentFriendlynameDialog[agent.friendlyname]"/>
<font-awesome-icon v-if="agent.friendlyname !== '' && agent.friendlyname !== ''" icon="pen-to-square" @click="showEditAgentFriendlynameDialog[agent.friendlyname] = !showEditAgentFriendlynameDialog[agent.friendlyname]" />
<!-- Edit Dialog -->
<BModal v-model="showEditAgentFriendlynameDialog[agent.friendlyname]" :no-close-on-backdrop="true" :close-on-esc="true" :okTitle="$t('Update Friendlyname')" okVariant="info" @ok="updateFriendlyname(agent.friendlyname, agent.updatedFriendlyName)">