Removed image properties button from display layouts toolbar (#2809)

Removed image properties button from display layouts toolbar
This commit is contained in:
Joel McKinnon 2020-03-30 16:58:46 -07:00 committed by GitHub
parent 4e39d9fb84
commit 984bede43b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -347,22 +347,6 @@ define(['lodash'], function (_) {
};
}
function getURLButton(selectedParent, selection) {
return {
control: "button",
domainObject: selectedParent,
applicableSelectedItems: selection.filter(selectionPath => {
return selectionPath[0].context.layoutItem.type === 'image-view';
}),
property: function (selectionPath) {
return getPath(selectionPath);
},
icon: "icon-image",
title: "Edit image properties",
dialog: DIALOG_FORM.image
};
}
function getTextButton(selectedParent, selection) {
return {
control: "button",
@ -555,9 +539,6 @@ define(['lodash'], function (_) {
getWidthInput(selectedParent, selectedObjects)
];
}
if (toolbar.url.length === 0) {
toolbar.url = [getURLButton(selectedParent, selectedObjects)];
}
if (toolbar.remove.length === 0) {
toolbar.remove = [getRemoveButton(selectedParent, selectionPath, selectedObjects)];
}