MCPcopy Create free account
hub / github.com/FSGModding/FSG_Mod_Assistant / doLine

Method doLine

renderer/renderJS/resolve_ui.js:39–61  ·  view source on GitHub ↗
(thisMod, sourceMod)

Source from the content-addressed store, hash-verified

37
38 // MARK: page build
39 doLine(thisMod, sourceMod) {
40 if ( thisMod.version === sourceMod.version ) {
41 return DATA.templateEngine('version_same', {
42 collectName : thisMod.collectName,
43 shortName : thisMod.modRecord.fileDetail.shortName,
44 title : this.doL10N(thisMod.modRecord.l10n.title),
45 })
46 }
47 const node = DATA.templateEngine('version_diff', {
48 collectName : thisMod.collectName,
49 shortName : thisMod.modRecord.fileDetail.shortName,
50 title : this.doL10N(thisMod.modRecord.l10n.title),
51 version : thisMod.version,
52 })
53
54 const fileCheck = node.querySelector('.fileOpCheck')
55
56 fileCheck.value = thisMod.collectKey
57 fileCheck.addEventListener('change', () => {
58 MA.byId('copyButton').clsEnable(MA.queryA('.fileOpCheck:checked').length !== 0)
59 })
60 return node
61 }
62
63 // MARK: comparisons
64 getMostRecent(verList) {

Callers 1

gotDataMethod · 0.95

Calls 2

doL10NMethod · 0.95
addEventListenerMethod · 0.45

Tested by

no test coverage detected