chore(portal): Remove NEW badge for DNS matching (#8259)

Fixes #8099
This commit is contained in:
Jamil
2025-02-28 04:52:56 +00:00
committed by GitHub
parent c9f085c102
commit 15938991d5
2 changed files with 0 additions and 28 deletions

View File

@@ -150,22 +150,8 @@ defmodule Web.Resources.Edit do
required
/>
<p
:if={
to_string(@form[:type].value) == "dns" and
is_binary(@form[:address].value) and
@form[:address].value
|> String.codepoints()
|> Resources.map_resource_address() == :drop
}
class="flex items-center gap-2 text-sm leading-6 text-accent-600 mt-2 w-full"
>
<.icon name="hero-exclamation-triangle" class="w-4 h-4" />
This is an advanced address format. This Resource will be available to Clients and Gateways v1.2.0 and higher only.
</p>
<div :if={to_string(@form[:type].value) == "dns"}>
<div class="mt-2 text-xs text-neutral-500">
<.badge type="info" class="p-0 mr-2">NEW</.badge>
Wildcard matching is supported:
</div>
<div class="mt-2 text-xs text-neutral-500">

View File

@@ -135,22 +135,8 @@ defmodule Web.Resources.New do
required
/>
<p
:if={
@form[:type].value == :dns and
is_binary(@form[:address].value) and
@form[:address].value
|> String.codepoints()
|> Resources.map_resource_address() == :drop
}
class="flex items-center gap-2 text-sm leading-6 text-accent-600 mt-2 w-full"
>
<.icon name="hero-exclamation-triangle" class="w-4 h-4" />
This is an advanced address format. This Resource will be available to Clients and Gateways v1.2.0 and higher only.
</p>
<div :if={@form[:type].value == :dns}>
<div class="mt-2 text-xs text-neutral-500">
<.badge type="info" class="p-0 mr-2">NEW</.badge>
Wildcard matching is supported:
</div>
<div class="mt-2 text-xs text-neutral-500">