Skip to content

Commit 6d3c3ad

Browse files
committed
Fix action snippets
1 parent fbc7765 commit 6d3c3ad

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/widgets/window.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -344,9 +344,9 @@ impl NotifyWindow {
344344
add_css_class: "small",
345345
set_label: "View Action",
346346
connect_clicked[text_view] => move |_| {
347-
text_view.buffer().insert_at_cursor(r#""action": [
347+
text_view.buffer().insert_at_cursor(r#""actions": [
348348
{
349-
"type": "view",
349+
"action": "view",
350350
"label": "torvalds boosted your toot",
351351
"url": "https://joinmastodon.org"
352352
}
@@ -358,9 +358,9 @@ impl NotifyWindow {
358358
add_css_class: "small",
359359
set_label: "HTTP Action",
360360
connect_clicked[text_view] => move |_| {
361-
text_view.buffer().insert_at_cursor(r#""action": [
361+
text_view.buffer().insert_at_cursor(r#""actions": [
362362
{
363-
"type": "http",
363+
"action": "http",
364364
"label": "Turn off lights",
365365
"method": "post",
366366
"url": "https://api.example.com/lights",

0 commit comments

Comments
 (0)