diff options
author | Miquel Lionel <lionel@les-miquelots.net> | 2023-10-08 17:45:16 +0200 |
---|---|---|
committer | fiaxh <fiaxh@users.noreply.github.com> | 2024-08-19 11:36:17 +0200 |
commit | 8e7dedcaa62a49373c22dfc54bf1bb8b261bcb61 (patch) | |
tree | 822997b08d8cd1c2925650bf7203f928f9364c3c /main/data/conversation_details.ui | |
parent | cfb0ca2a64c1d680799ce752412b089ac075b780 (diff) | |
download | dino-8e7dedcaa62a49373c22dfc54bf1bb8b261bcb61.tar.gz dino-8e7dedcaa62a49373c22dfc54bf1bb8b261bcb61.zip |
Allow blocking entire domain from conversation details
- the block domain option is in a drop down of the block button
- when blocking the domain, the "Blocked domain" button appears
and block button disappears and vice versa.
Diffstat (limited to 'main/data/conversation_details.ui')
-rw-r--r-- | main/data/conversation_details.ui | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/main/data/conversation_details.ui b/main/data/conversation_details.ui index 4229d875..c34124a3 100644 --- a/main/data/conversation_details.ui +++ b/main/data/conversation_details.ui @@ -122,11 +122,12 @@ </object> </child> <child> - <object class="GtkButton" id="block_button"> + <object class="AdwSplitButton" id="block_button"> + <property name="menu_model">block_menu_model</property> <property name="visible" bind-source="model" bind-property="show-blocked" bind-flags="sync-create"/> <child> <object class="AdwButtonContent" id="block_button_content"> - <property name="icon-name">action-unavailable-symbolic</property> + <property name="icon-name">dino-block-symbolic</property> <property name="label">Block</property> </object> </child> @@ -203,4 +204,20 @@ </item> </section> </menu> -</interface>
\ No newline at end of file + <menu id="block_menu_model"> + <section> + <item> + <attribute name="label" translatable="1">Block user</attribute> + <attribute name="action">do.block</attribute> + </item> + <item> + <attribute name="label" translatable="1">Block entire domain</attribute> + <attribute name="action">do.block_domain</attribute> + </item> + <item> + <attribute name="label" translatable="1">Unblock</attribute> + <attribute name="action">do.unblock</attribute> + </item> + </section> + </menu> +</interface> |