Skip to content

Commit

Permalink
Frontend: ethernet: add tooltip informing why the DHCP server button …
Browse files Browse the repository at this point in the history
…is disabled
  • Loading branch information
Williangalvani authored and JoaoMario109 committed Oct 11, 2024
1 parent 56d39c0 commit d457e2d
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions core/frontend/src/components/ethernet/InterfaceCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,19 @@
>
Disable <br> DHCP server
</v-btn>
<v-btn
<span
v-else
small
class="ma-2 px-2 py-5 elevation-1"
:disabled="!is_static_ip_present"
@click="openDHCPServerDialog"
v-tooltip="!is_static_ip_present ? 'A static IP address is required to enable DHCP server.' : undefined"
>
Enable <br> DHCP server
</v-btn>
<v-btn
small
class="ma-2 px-2 py-5 elevation-1"
:disabled="!is_static_ip_present"
@click="openDHCPServerDialog"
>
Enable <br> DHCP server
</v-btn>
</span>
</v-row>
</v-container>
</v-expansion-panel-content>
Expand Down

0 comments on commit d457e2d

Please sign in to comment.