Skip to content

Commit c3a6cc7

Browse files
committed
add fqdn to srv targets table
1 parent d02f15a commit c3a6cc7

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

subdomains/src/Filament/Admin/Resources/SrvTargets/SrvTargetResource.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,10 @@ public static function table(Table $table): Table
3333
return $table
3434
->columns([
3535
TextColumn::make('name')
36-
->label(trans('subdomains::strings.name'))
37-
->url(fn (Node $node) => EditNode::getUrl(['record' => $node])),
36+
->label(trans('admin/node.table.name'))
37+
->url(fn (Node $node) => user()?->can('update', $node) ? EditNode::getUrl(['record' => $node]) : null),
38+
TextColumn::make('fqdn')
39+
->label(trans('admin/node.table.address')),
3840
TextInputColumn::make('srv_target')
3941
->label(trans('subdomains::strings.srv_target'))
4042
->placeholder(trans('subdomains::strings.no_srv_target'))

0 commit comments

Comments
 (0)