diff --git a/wwwroot/index.ui b/wwwroot/index.ui index bd2dd61..8aacf95 100644 --- a/wwwroot/index.ui +++ b/wwwroot/index.ui @@ -53,6 +53,25 @@ "url": "{{entire_url('i18n/language.ui')}}" } }, + { + "widgettype": "Button", + "id": "todo_badge", + "options": { + "label": "", + "css": "text", + "color": "#fbbf24", + "cfontsize": 0.85 + }, + "binds": [ + { + "wid": "self", + "event": "click", + "actiontype": "script", + "target": "self", + "script": "if(window.openMyTodos){openMyTodos();}" + } + ] + }, { "widgettype": "urlwidget", "options": { @@ -377,6 +396,14 @@ } } ] + }, + { + "widgettype": "Html", + "options": { + "html": "", + "height": "0", + "width": "0" + } } ] } \ No newline at end of file diff --git a/wwwroot/user_menu.ui b/wwwroot/user_menu.ui index 559f5b1..62bb9fd 100644 --- a/wwwroot/user_menu.ui +++ b/wwwroot/user_menu.ui @@ -8,6 +8,11 @@ "width":"75%" }, "items":[ + { + "name":"my_todos", + "label":"我的待办", + "script":"if(window.openMyTodos){openMyTodos();}" + }, { "name":"aboutme", "label":"我",