mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 10:18:54 +00:00
@@ -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">
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user