Compare commits
2 Commits
d5a2508e4e
...
b613608721
Author | SHA1 | Date | |
---|---|---|---|
b613608721 | |||
9c8f76b028 |
@ -383,6 +383,11 @@ class HomeController extends Controller
|
||||
: view('frames.'.$key['cmd']))
|
||||
->with('bases',$this->bases());
|
||||
|
||||
// If we are rendering a DN, rebuild our object
|
||||
$o = config('server')->fetch($key['dn']);
|
||||
foreach (collect(old())->except(['dn','_token']) as $attr => $value)
|
||||
$o->{$attr} = $value;
|
||||
|
||||
return match ($key['cmd']) {
|
||||
'create' => $view
|
||||
->with('container',old('container',$key['dn']))
|
||||
@ -390,7 +395,8 @@ class HomeController extends Controller
|
||||
|
||||
'dn' => $view
|
||||
->with('dn',$key['dn'])
|
||||
->with('page_actions',collect(['edit'=>TRUE,'copy'=>TRUE])),
|
||||
->with('o',$o)
|
||||
->with('page_actions',collect(['edit'=>TRUE])),
|
||||
|
||||
'import' => $view,
|
||||
|
||||
|
@ -1 +1 @@
|
||||
v2.0.1-rel
|
||||
v2.0.2-dev
|
||||
|
@ -1,7 +1,7 @@
|
||||
@extends('layouts.dn')
|
||||
|
||||
@section('page_title')
|
||||
@include('fragment.dn.header',['o'=>($o=config('server')->fetch($dn))])
|
||||
@include('fragment.dn.header',['o'=>($o ?? $o=config('server')->fetch($dn))])
|
||||
@endsection
|
||||
|
||||
@section('main-content')
|
||||
|
Loading…
x
Reference in New Issue
Block a user