Set number of changed files for closed infopanel

This commit is contained in:
shortcutme 2019-02-09 13:55:53 +01:00
parent 0559eb1a9a
commit 7314f20563
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE
2 changed files with 4 additions and 0 deletions

View file

@ -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)

View file

@ -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)