Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

broker deleted message banner #4371

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def set_sent_box
end

def is_broker?
(@inbox_provider.class.to_s == "Person") && /.*BrokerAgencyProfile$/.match(@inbox_provider.broker_role.broker_agency_profile._type)
(@inbox_provider.class.to_s == "Person") && /.*BrokerAgencyProfile$/.match(@inbox_provider&.broker_role&.broker_agency_profile&._type)
end

def find_inbox_provider
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<% if @bs4 %>
<div class="hidden mb-4" id="messageDeleted">
<div class="alert alert-info d-flex align-items-start">
<div class="alert alert-success d-flex align-items-start">
<div class="d-flex pl-1">
<div class="info-icon icon" alt="info">&nbsp;</div>
<div class="success-icon icon" alt='<%= l10n("success") %>'>&nbsp;</div>
</div>
<div class="col mr-auto p-0 align-self-center">
<%= l10n("broker_agencies.message_deleted") %>
</div>
<div class="d-flex pl-1">
<span class="close-icon icon icon-sm pr-1" alt="Close" href="javascript;">&nbsp;<span class="sr-only">Close</span></span>
<span class="close-icon icon icon-sm pr-1" alt='<%= l10n("close") %>' href="javascript;">&nbsp;<span class="sr-only"><%= l10n("close") %></span></span>
</div>
</div>
</div>
Expand Down
1 change: 1 addition & 0 deletions db/seedfiles/translations/en/me/broker_agencies.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"en.broker_agencies.last_name" => "Last Name",
"en.broker_agencies.dob" => "Date of Birth",
"en.broker_agencies.message_deleted" => "Successfully deleted message.",
"en.success" => "Success",
"en.broker_agencies.broker_staff_role_success" => "Your registration has been submitted. A response will be sent to the email address you provided once your application is reviewed.",
"en.broker_agencies.broker_staff_role_error" => "Broker Staff Role was not added because",
"en.broker_agencies.profiles.broker_agency_message" => "Broker Agency Message",
Expand Down
Loading