Skip to content

Commit

Permalink
Removed filter list button from restoration editing
Browse files Browse the repository at this point in the history
  • Loading branch information
rmathis committed Oct 26, 2021
1 parent 006b7fb commit ea172eb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ui/src/app/metadata/editor/MetadataEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { checkChanges } from '../hooks/utility';
import { createNotificationAction, NotificationTypes, useNotificationDispatcher } from '../../notifications/hoc/Notifications';
import { useUserGroup } from '../../core/user/UserContext';

export function MetadataEditor ({ current }) {
export function MetadataEditor ({ restore, current }) {

const translator = useTranslator();
const group = useUserGroup();
Expand Down Expand Up @@ -83,7 +83,7 @@ export function MetadataEditor ({ current }) {

const warnings = definition.warnings && definition.warnings(metadata);

const canFilter = FilterableProviders.indexOf(definition.type) > -1;
const canFilter = restore ? false : FilterableProviders.indexOf(definition.type) > -1;

return (
<div className="container-fluid p-3">
Expand Down
2 changes: 1 addition & 1 deletion ui/src/app/metadata/view/MetadataRestore.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export function MetadataRestore() {
...metadata,
version: latest.version
}}>
<MetadataEditor current={{
<MetadataEditor restore={true} current={{
...metadata,
version: latest.version
}} />
Expand Down

0 comments on commit ea172eb

Please sign in to comment.