fix(DashboardHome): remove edit-pen for controller

remove edit-pen for controller which cannot have a friendlyname for now
This commit is contained in:
stroskler 2024-02-06 07:00:26 +00:00
parent 2b64b3f9dd
commit a8b75fb65a
No known key found for this signature in database
GPG key ID: BFC1D7C45DD50847

View file

@ -56,7 +56,8 @@
</template>
<!-- Edit FriendlyName -->
<font-awesome-icon class="ms-2" icon="pen-to-square" @click="showEditAgentFriendlynameDialog[agent.friendlyname] = !showEditAgentFriendlynameDialog[agent.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]"/>
<!-- 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)">