Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Frontend: ethernet: add tooltip informing why the DHCP server button is disabled #2958

Merged
merged 1 commit into from
Oct 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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