web: swap spam and read/unread buttons
This commit is contained in:
parent
a33e1f5d3c
commit
31a3ac66b6
@ -314,18 +314,6 @@ fn search_toolbar(
|
||||
IF!(show_bulk_edit =>
|
||||
div![
|
||||
C!["level-left"],
|
||||
div![
|
||||
C!["level-item"],
|
||||
div![C!["buttons", "has-addons"],
|
||||
button![
|
||||
C!["button", "spam"],
|
||||
attrs!{At::Title => "Mark as spam"},
|
||||
span![C!["icon", "is-small"], i![C!["far", "fa-hand"]]],
|
||||
IF!(show_icon_text=>span!["Spam"]),
|
||||
ev(Ev::Click, |_| Msg::SelectionAddTag("Spam".to_string()))
|
||||
],
|
||||
],
|
||||
],
|
||||
div![
|
||||
C!["level-item"],
|
||||
div![C!["buttons", "has-addons"],
|
||||
@ -344,6 +332,18 @@ fn search_toolbar(
|
||||
ev(Ev::Click, |_| Msg::SelectionMarkAsUnread)
|
||||
]
|
||||
]
|
||||
],
|
||||
div![
|
||||
C!["level-item"],
|
||||
div![C!["buttons", "has-addons"],
|
||||
button![
|
||||
C!["button", "spam"],
|
||||
attrs!{At::Title => "Mark as spam"},
|
||||
span![C!["icon", "is-small"], i![C!["far", "fa-hand"]]],
|
||||
IF!(show_icon_text=>span!["Spam"]),
|
||||
ev(Ev::Click, |_| Msg::SelectionAddTag("Spam".to_string()))
|
||||
],
|
||||
],
|
||||
]
|
||||
]),
|
||||
div![
|
||||
@ -812,22 +812,6 @@ fn thread(
|
||||
],
|
||||
div![
|
||||
C!["level", "is-mobile"],
|
||||
div![
|
||||
C!["level-item"],
|
||||
div![
|
||||
C!["buttons", "has-addons"],
|
||||
button![
|
||||
C!["button", "spam"],
|
||||
attrs! {At::Title => "Spam"},
|
||||
span![C!["icon", "is-small"], i![C!["far", "fa-hand"]]],
|
||||
IF!(show_icon_text=>span!["Spam"]),
|
||||
ev(Ev::Click, move |_| Msg::AddTag(
|
||||
format!("thread:{spam_thread_id}"),
|
||||
"Spam".to_string()
|
||||
)),
|
||||
],
|
||||
],
|
||||
],
|
||||
div![
|
||||
C!["level-item"],
|
||||
div![
|
||||
@ -854,6 +838,22 @@ fn thread(
|
||||
],
|
||||
],
|
||||
],
|
||||
div![
|
||||
C!["level-item"],
|
||||
div![
|
||||
C!["buttons", "has-addons"],
|
||||
button![
|
||||
C!["button", "spam"],
|
||||
attrs! {At::Title => "Spam"},
|
||||
span![C!["icon", "is-small"], i![C!["far", "fa-hand"]]],
|
||||
IF!(show_icon_text=>span!["Spam"]),
|
||||
ev(Ev::Click, move |_| Msg::AddTag(
|
||||
format!("thread:{spam_thread_id}"),
|
||||
"Spam".to_string()
|
||||
)),
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
messages,
|
||||
/* TODO(wathiede): plumb in orignal id
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user