summaryrefslogtreecommitdiff
path: root/indra/newview/llpanelprofileclassifieds.cpp
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2022-06-03 20:30:39 +0300
committerAndrey Kleshchev <andreykproductengine@lindenlab.com>2022-06-03 20:30:39 +0300
commit3f5164446653f89ef559a883612401fea886b138 (patch)
tree1e16401d8574258f9c6f5d8148347dcb39ffb4e4 /indra/newview/llpanelprofileclassifieds.cpp
parent6354a053e366e1b6228c45a5dc9f92b262862dbe (diff)
SL-15312 Updated classified's layout
- better emphasis onto publsihing/saving button - better resize logic
Diffstat (limited to 'indra/newview/llpanelprofileclassifieds.cpp')
-rw-r--r--indra/newview/llpanelprofileclassifieds.cpp10
1 files changed, 4 insertions, 6 deletions
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<LLButton>("set_to_curr_location_btn");
mCancelButton = getChild<LLButton>("cancel_btn");
- mTeleportBtnCnt = getChild<LLPanel>("teleport_btn_lp");
- mMapBtnCnt = getChild<LLPanel>("map_btn_lp");
- mEditBtnCnt = getChild<LLPanel>("edit_btn_lp");
+ mUtilityBtnCnt = getChild<LLPanel>("util_buttons_lp");
+ mPublishBtnsCnt = getChild<LLPanel>("publish_layout_panel");
mCancelBtnCnt = getChild<LLPanel>("cancel_btn_lp");
mSaveBtnCnt = getChild<LLPanel>("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());
}