From 3f5164446653f89ef559a883612401fea886b138 Mon Sep 17 00:00:00 2001 From: Andrey Kleshchev Date: Fri, 3 Jun 2022 20:30:39 +0300 Subject: SL-15312 Updated classified's layout - better emphasis onto publsihing/saving button - better resize logic --- indra/newview/llpanelprofileclassifieds.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'indra/newview/llpanelprofileclassifieds.cpp') diff --git a/indra/newview/llpanelprofileclassifieds.cpp b/indra/newview/llpanelprofileclassifieds.cpp index a961422dfe..1cfe0b0a2b 100644 --- a/indra/newview/llpanelprofileclassifieds.cpp +++ b/indra/newview/llpanelprofileclassifieds.cpp @@ -579,9 +579,8 @@ BOOL LLPanelProfileClassified::postBuild() mSetLocationButton = getChild("set_to_curr_location_btn"); mCancelButton = getChild("cancel_btn"); - mTeleportBtnCnt = getChild("teleport_btn_lp"); - mMapBtnCnt = getChild("map_btn_lp"); - mEditBtnCnt = getChild("edit_btn_lp"); + mUtilityBtnCnt = getChild("util_buttons_lp"); + mPublishBtnsCnt = getChild("publish_layout_panel"); mCancelBtnCnt = getChild("cancel_btn_lp"); mSaveBtnCnt = getChild("save_btn_lp"); @@ -797,13 +796,12 @@ void LLPanelProfileClassified::setEditMode(BOOL edit_mode) void LLPanelProfileClassified::updateButtons() { bool edit_mode = getEditMode(); - mTeleportBtnCnt->setVisible(!edit_mode); - mMapBtnCnt->setVisible(!edit_mode); - mEditBtnCnt->setVisible(!edit_mode); + mUtilityBtnCnt->setVisible(!edit_mode); // cancel button should either delete unpublished // classified or not be there at all mCancelBtnCnt->setVisible(edit_mode && !mIsNew); + mPublishBtnsCnt->setVisible(edit_mode); mSaveBtnCnt->setVisible(edit_mode); mEditButton->setVisible(!edit_mode && getSelfProfile()); } -- cgit v1.2.3