diff --git a/index.css b/index.css index 89f7c2e8..4b4700dc 100644 --- a/index.css +++ b/index.css @@ -750,7 +750,8 @@ body.windows form.option>div.item.icon.refresh { font-size:24px; line-height:28p body.windows form.option>div.item.icon.goback { font-size:24px; line-height:28px; } body.windows div.item.button.refresh>span.icon { font-size:22px; line-height:28px; } body.windows div.item.button.create>span.icon { line-height:28px; } -div.item.text { position:relative; display:flex; align-items:center; } +// div.item.text { position:relative; display:flex; align-items:center; } +div.item.text { position:relative; align-items:center; } div.item.text.filter input { padding-left:24px; } div.item.text._icon input { padding-left:24px; } div.item.select._icon i:first-child { color:var(--disable-fg-color); position:absolute; left:0; padding:var(--input-padding); } diff --git a/plugin/story/form.js b/plugin/story/form.js index 986d4277..be43f1ca 100644 --- a/plugin/story/form.js +++ b/plugin/story/form.js @@ -5,7 +5,11 @@ Volcanos(chat.ONIMPORT, { return {view: [[html.ITEM, item.type]], list: [item.type != html.BUTTON && {text: [can.user.trans(can, item.name, item._trans, html.INPUT), "", mdb.NAME]}, item.need == "must" && {text: ["*", "", "need"]}], _init: function(target) { item.type == html.BUTTON && (item.onclick = function(event) { var args = [] can.core.Item(can.page.SelectArgs(can, can._output)[0], function(key, value) { args.push(key, value) }) - can.Update(can.request(event, {_handle: ice.TRUE}), [ctx.ACTION, item.name].concat(args), function() { + can.Update(can.request(event, {_handle: ice.TRUE}), [ctx.ACTION, item.name].concat(args), function(msg) { + if (msg.IsErr()) { + can.user.toastFailure(can, msg.Result()) + return + } can.Update() }) }), can.onappend.input(can, item, "", target)