improve behavior of draft discard button, plus clearer text

pull/35/head
Ondřej Hruška 6 years ago
parent 074cda7fe4
commit 0d938ec8af
Signed by: MightyPork
GPG Key ID: 2C5FD5035250423D
  1. 2
      app/Http/Controllers/TableEditController.php
  2. 2
      resources/views/table/propose/layout.blade.php

@ -59,7 +59,7 @@ class TableEditController extends Controller
session()->forget($tableModel->draftSessionKey);
return redirect($tableModel->viewRoute);
return redirect($tableModel->draftRoute);
}
#region Draft tabs

@ -22,7 +22,7 @@ if (!isset($tab) || $tab == '') $tab = 'edit-rows';
</h1>
<a href="{{$table->draftDiscardRoute}}" class="btn btn-outline-danger mr-2 py-1 btn-sm">
@icon(fa-trash-o fa-pr, sr:Discard){{--
--}}Discard
--}}Clear Changes
</a>
<a href="{{ $table->viewRoute }}" class="btn btn-outline-primary py-1 btn-sm" @tooltip(Back to Table)>
@icon(fa-reply, sr:Back to Table)

Loading…
Cancel
Save