Compare commits

...

4 Commits

Author SHA1 Message Date
c3f82d992b Revert version to 2.1.2-dev
All checks were successful
Create Docker Image / Test Application (x86_64) (push) Successful in 29s
Create Docker Image / Build Docker Image (x86_64) (push) Successful in 1m20s
Create Docker Image / Build Docker Image (arm64) (push) Successful in 4m37s
Create Docker Image / Final Docker Image Manifest (push) Successful in 9s
2025-04-21 18:08:48 +10:00
8d4dccd9e9 Release v2.1.1
All checks were successful
Create Docker Image / Test Application (x86_64) (push) Successful in 30s
Create Docker Image / Build Docker Image (x86_64) (push) Successful in 1m31s
Create Docker Image / Build Docker Image (arm64) (push) Successful in 4m43s
Create Docker Image / Final Docker Image Manifest (push) Successful in 9s
2025-04-21 18:07:37 +10:00
ccff36361f Fix catching InsufficientAccessException when creating new entries 2025-04-21 17:24:59 +10:00
b7ca768cc6 Enable creation of new branch. Closes #312 2025-04-21 17:24:59 +10:00
4 changed files with 11 additions and 4 deletions

View File

@ -379,7 +379,7 @@ class HomeController extends Controller
if ($key['dn']) { if ($key['dn']) {
$o = config('server')->fetch($key['dn']); $o = config('server')->fetch($key['dn']);
foreach (collect(old())->except(['key','dn','step','_token','userpassword_hash']) as $attr => $value) foreach (collect(old())->except(['key','dn','step','_token','userpassword_hash','rdn','rdn_value']) as $attr => $value)
$o->{$attr} = $value; $o->{$attr} = $value;
} }
@ -393,7 +393,7 @@ class HomeController extends Controller
->with('o',$o) ->with('o',$o)
->with('page_actions',collect([ ->with('page_actions',collect([
'copy'=>FALSE, 'copy'=>FALSE,
'create'=>FALSE, 'create'=>TRUE,
'delete'=>TRUE, 'delete'=>TRUE,
'edit'=>TRUE, 'edit'=>TRUE,
'export'=>TRUE, 'export'=>TRUE,

View File

@ -1 +1 @@
v2.1.0-rel v2.1.2-dev

View File

@ -10,6 +10,8 @@
@endsection @endsection
@section('main-content') @section('main-content')
<x-error/>
<div class="row"> <div class="row">
<div class="offset-1 col-10"> <div class="offset-1 col-10">
<div class="main-card mb-3 card"> <div class="main-card mb-3 card">

View File

@ -19,7 +19,7 @@
<ul class="nav"> <ul class="nav">
@if(isset($page_actions) && $page_actions->get('create')) @if(isset($page_actions) && $page_actions->get('create'))
<li> <li>
<button class="btn btn-outline-dark p-1 m-1" id="entry-copy-move" data-bs-toggle="tooltip" data-bs-placement="bottom" title="@lang('New Child')" disabled><i class="fas fa-fw fa-diagram-project fs-5"></i></button> <button class="btn btn-outline-dark p-1 m-1" id="entry-create" data-bs-toggle="tooltip" data-bs-placement="bottom" title="@lang('Create Child Entry')"><i class="fas fa-fw fa-diagram-project fs-5"></i></button>
</li> </li>
@endif @endif
@if(isset($page_actions) && $page_actions->get('export')) @if(isset($page_actions) && $page_actions->get('export'))
@ -210,6 +210,11 @@
} }
$(document).ready(function() { $(document).ready(function() {
$('button[id=entry-create]').on('click',function(item) {
location.replace('/#{{ Crypt::encryptString(sprintf('*%s|%s','create',$dn)) }}');
location.reload();
});
$('button[id=entry-edit]').on('click',function(item) { $('button[id=entry-edit]').on('click',function(item) {
item.preventDefault(); item.preventDefault();