Skip to content

Commit

Permalink
After receiving some negative feedback about the button place, move "…
Browse files Browse the repository at this point in the history
…New" button on the last position
  • Loading branch information
tprouvot committed Dec 21, 2023
1 parent ef85944 commit c06a67c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addon/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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,
)
);
}
Expand Down

0 comments on commit c06a67c

Please sign in to comment.