Skip to content

Commit

Permalink
[Maps] Move new vector layer wizard card down (#104797) (#105431)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Caldwell committed Jul 13, 2021
1 parent 67fbf94 commit 871ca3b
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ export function registerLayerWizards() {

// Registration order determines display order
registerLayerWizard(uploadLayerWizardConfig);
registerLayerWizard(newVectorLayerWizardConfig);
registerLayerWizard(esDocumentsLayerWizardConfig);
// @ts-ignore
registerLayerWizard(choroplethLayerWizardConfig);
Expand All @@ -51,6 +50,7 @@ export function registerLayerWizards() {
registerLayerWizard(point2PointLayerWizardConfig);
// @ts-ignore
registerLayerWizard(emsBoundariesLayerWizardConfig);
registerLayerWizard(newVectorLayerWizardConfig);
// @ts-ignore
registerLayerWizard(emsBaseMapLayerWizardConfig);
// @ts-ignore
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,17 @@ export class TOCEntryActionsPopover extends Component<Props, State> {
},
},
];
actionItems.push({
disabled: this.props.isEditButtonDisabled,
name: EDIT_LAYER_SETTINGS_LABEL,
icon: <EuiIcon type="pencil" size="m" />,
'data-test-subj': 'layerSettingsButton',
toolTipContent: null,
onClick: () => {
this._closePopover();
this.props.openLayerSettings();
},
});

if (!this.props.isReadOnly) {
if (this.state.supportsFeatureEditing) {
Expand Down Expand Up @@ -186,17 +197,6 @@ export class TOCEntryActionsPopover extends Component<Props, State> {
},
});
}
actionItems.push({
disabled: this.props.isEditButtonDisabled,
name: EDIT_LAYER_SETTINGS_LABEL,
icon: <EuiIcon type="pencil" size="m" />,
'data-test-subj': 'layerSettingsButton',
toolTipContent: null,
onClick: () => {
this._closePopover();
this.props.openLayerSettings();
},
});
actionItems.push({
name: i18n.translate('xpack.maps.layerTocActions.cloneLayerTitle', {
defaultMessage: 'Clone layer',
Expand Down

0 comments on commit 871ca3b

Please sign in to comment.