Set number of changed files for closed infopanel
This commit is contained in:
parent
0559eb1a9a
commit
7314f20563
2 changed files with 4 additions and 0 deletions
|
@ -39,6 +39,9 @@ class Infopanel
|
|||
@elem.find(".line-1").text(line1)
|
||||
@elem.find(".line-2").text(line2)
|
||||
|
||||
setClosedNum: (num) =>
|
||||
@elem.find(".closed-num").text(num)
|
||||
|
||||
setAction: (title, func) =>
|
||||
@elem.find(".button").text(title).off("click").on("click", func)
|
||||
|
||||
|
|
|
@ -584,6 +584,7 @@ class Wrapper
|
|||
"#{res.modified_files.length} modified file#{if num > 1 then 's' else ''}",
|
||||
res.modified_files.join(", ")
|
||||
)
|
||||
@infopanel.setClosedNum(num)
|
||||
@infopanel.setAction "Sign & Publish", =>
|
||||
@siteSign "content.json", (res) =>
|
||||
if (res)
|
||||
|
|
Loading…
Reference in a new issue