Skip to content

Commit

Permalink
hide unredacted button; rename redacted.
Browse files Browse the repository at this point in the history
  • Loading branch information
rshewitt committed Jun 6, 2024
1 parent 7e64b7d commit 3ed4780
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ckanext/datajson/templates_datajson/organization/read.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
{{ super() }}
{% if h.check_access('package_create', {'owner_org': c.group_dict.id}) %}
{% if h.datajson_inventory_links_enabled() %}
<button id="btnUnredacted" class="btn btn-secondary">Unredacted Inventory</button>
<button id="btnRedacted" class="btn btn-secondary">Redacted Inventory</button>
<button id="btnUnredacted" class="btn btn-secondary">Export data.json</button>
<!-- <button id="btnRedacted" class="btn btn-secondary">Redacted Inventory</button> -->
<button id="btnDraft" class="btn btn-secondary">Export Drafts</button>

<form id="formUnredacted" action="{{c.group_dict.id + '/unredacted.json' }}"></form>
Expand All @@ -19,9 +19,9 @@
$('#formUnredacted').submit();
});

$('#btnRedacted').click(function () {
$('#formRedacted').submit();
});
// $('#btnRedacted').click(function () {
// $('#formRedacted').submit();
// });

$('#btnDraft').click(function () {
$('#formDraft').submit();
Expand Down

0 comments on commit 3ed4780

Please sign in to comment.