mirror of
https://shylinux.com/x/volcanos
synced 2025-04-25 16:58:06 +08:00
add some
This commit is contained in:
parent
3a3def6e96
commit
69c73c5593
@ -106,7 +106,8 @@ Volcanos("user", {
|
|||||||
return can.user.toast(can, {content: "🕑 "+content, title: title, duration: -1, progress: progress})
|
return can.user.toast(can, {content: "🕑 "+content, title: title, duration: -1, progress: progress})
|
||||||
},
|
},
|
||||||
toastFailure: function(can, content, title) {
|
toastFailure: function(can, content, title) {
|
||||||
content = can.user.trans(can, content||""), content += can.user.trans(can, " failure", "失败")
|
content = can.user.trans(can, content||"")
|
||||||
|
if (content.length < 8) { content += can.user.trans(can, " failure", "失败") }
|
||||||
return can.user.toast(can, {content: "❌ "+content, title: title, duration: -1})
|
return can.user.toast(can, {content: "❌ "+content, title: title, duration: -1})
|
||||||
},
|
},
|
||||||
toastSuccess: function(can, content, title, duration) {
|
toastSuccess: function(can, content, title, duration) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user