FIRE-31256: Add Cancel button for new auto-replace list dialog

master
Ansariel 2021-11-29 11:38:33 +01:00
parent 0e198621f3
commit 829eefba3d
3 changed files with 13 additions and 0 deletions

View File

@ -420,6 +420,14 @@ void LLFloaterAutoReplaceSettings::onNewList()
bool LLFloaterAutoReplaceSettings::callbackNewListName(const LLSD& notification, const LLSD& response)
{
LL_DEBUGS("AutoReplace")<<"called"<<LL_ENDL;
// <FS:Ansariel> FIRE-31256: Add Cancel button for new auto-replace list dialog
S32 option = LLNotificationsUtil::getSelectedOption(notification, response);
if (option != 0)
{
return false;
}
// </FS:Ansariel>
LLSD newList = notification["payload"]["list"];

View File

@ -1250,6 +1250,7 @@ Sie sind nicht berechtigt, Land für die aktive Gruppe zu kaufen.
Name für neue Liste:
<form name="form">
<button name="SetName" text="OK"/>
<button name="Cancel" text="Abbrechen"/>
</form>
</notification>
<notification label="Automatische Ersetzungsliste umbenennen" name="RenameAutoReplaceList">

View File

@ -3129,6 +3129,10 @@ Would you be my friend?
index="0"
name="SetName"
text="OK"/>
<button
index="1"
name="Cancel"
text="Cancel"/>
</form>
</notification>