Skip to content

Commit

Permalink
fix(DashboardHome): duplicate code
Browse files Browse the repository at this point in the history
remove if condition and update to proper values to prevent
duplicates
  • Loading branch information
lohrbini committed Feb 6, 2024
1 parent 052cf17 commit 1e688f8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions frontend/src/pages/DashboardHome.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 !== ''" @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)">
Expand Down

0 comments on commit 1e688f8

Please sign in to comment.