[Maps] Move new vector layer wizard card down (#104797)

This commit is contained in:
Aaron Caldwell 2021-07-13 07:09:44 -06:00 committed by GitHub
parent 4f7cae7950
commit 41fb80b8a7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 23 additions and 12 deletions

View file

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

View file

@ -535,6 +535,17 @@ exports[`TOCEntryActionsPopover should not show edit actions in read only mode 1
"onClick": [Function],
"toolTipContent": null,
},
Object {
"data-test-subj": "layerSettingsButton",
"disabled": false,
"icon": <EuiIcon
size="m"
type="pencil"
/>,
"name": "Edit layer settings",
"onClick": [Function],
"toolTipContent": null,
},
],
"title": "Layer actions",
},

View file

@ -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) {
@ -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',