From c06a67c7a97c926a9ad29e70fc6104eee5f1c9dc Mon Sep 17 00:00:00 2001 From: Thomas Prouvot Date: Thu, 21 Dec 2023 10:15:06 +0100 Subject: [PATCH] After receiving some negative feedback about the button place, move "New" button on the last position --- addon/popup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addon/popup.js b/addon/popup.js index d997ca29..4d8662c2 100644 --- a/addon/popup.js +++ b/addon/popup.js @@ -1451,7 +1451,6 @@ class AllDataSelection extends React.PureComponent { h(AllDataRecordDetails, {sfHost, selectedValue, recordIdDetails, className: "top-space", linkTarget}), ), h(ShowDetailsButton, {ref: "showDetailsBtn", sfHost, showDetailsSupported, selectedValue, contextRecordId}), - selectedValue.sobject.isEverCreatable ? h("a", {ref: "showNewBtn", href: this.getNewObjectUrl(sfHost, selectedValue.sobject.newUrl), target: linkTarget, className: "slds-m-top_xx-small page-button slds-button slds-button_neutral"}, h("span", {}, h("u", {}, "N"), "ew " + selectedValue.sobject.label)) : null, selectedValue.recordId && selectedValue.recordId.startsWith("0Af") ? h("a", {href: this.getDeployStatusUrl(), target: linkTarget, className: "button page-button slds-button slds-button_neutral slds-m-top_xx-small slds-m-bottom_xx-small"}, "Check Deploy Status") : null, buttons.map((button, index) => h("div", {}, h("a", @@ -1469,6 +1468,7 @@ class AllDataSelection extends React.PureComponent { : " (Not readable)" ))), isFieldsPresent ? h("a", {ref: "showFieldApiNameBtn", onClick: showApiName, target: linkTarget, className: "slds-m-top_xx-small page-button slds-button slds-button_neutral"}, h("span", {}, "Show ", h("u", {}, "f"), "ields API names")) : null, + selectedValue.sobject.isEverCreatable ? h("a", {ref: "showNewBtn", href: this.getNewObjectUrl(sfHost, selectedValue.sobject.newUrl), target: linkTarget, className: "slds-m-top_xx-small page-button slds-button slds-button_neutral"}, h("span", {}, h("u", {}, "N"), "ew " + selectedValue.sobject.label)) : null, ) ); }