Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

disable archiving button if dataset already archived! #4356

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion adminSiteClient/DatasetEditPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,6 @@
const { dataset } = this.props
const { newDataset } = this
const isBulkImport = dataset.namespace !== "owid"

return (
<main className="DatasetEditPage">
<Prompt
Expand Down Expand Up @@ -374,6 +373,7 @@
</p>
) : (
<p>
{dataset.isArchived}

Check failure on line 376 in adminSiteClient/DatasetEditPage.tsx

View workflow job for this annotation

GitHub Actions / testdbcheck

Property 'isArchived' does not exist on type 'DatasetPageData'.

Check failure on line 376 in adminSiteClient/DatasetEditPage.tsx

View workflow job for this annotation

GitHub Actions / bundlewatch

Property 'isArchived' does not exist on type 'DatasetPageData'.

Check failure on line 376 in adminSiteClient/DatasetEditPage.tsx

View workflow job for this annotation

GitHub Actions / testcheck

Property 'isArchived' does not exist on type 'DatasetPageData'.

Check failure on line 376 in adminSiteClient/DatasetEditPage.tsx

View workflow job for this annotation

GitHub Actions / bundlewatch

Property 'isArchived' does not exist on type 'DatasetPageData'.

Check failure on line 376 in adminSiteClient/DatasetEditPage.tsx

View workflow job for this annotation

GitHub Actions / testcheck

Property 'isArchived' does not exist on type 'DatasetPageData'.

Check failure on line 376 in adminSiteClient/DatasetEditPage.tsx

View workflow job for this annotation

GitHub Actions / testdbcheck

Property 'isArchived' does not exist on type 'DatasetPageData'.
<strong>Before archiving, ensure that:</strong>
<ul>
<li>
Expand Down
Loading