MCPcopy Create free account
hub / github.com/codecombat/codecombat / selectedLevelSlugs

Function selectedLevelSlugs

app/views/editor/verifier/i18nVerifierView.js:87–101  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

85 return this.compareStrings(this.problems)
86 }),
87 selectedLevelSlugs () {
88 this.loading = true
89 const promises = []
90 for (const slug of Array.from(this.selectedLevelSlugs)) {
91 if (!this.problemsByLevel[slug]) {
92 promises.push(this.getProblems(slug))
93 }
94 }
95 return Promise.all(promises).then(newProblems => {
96 this.loading = false
97 return _.defer(() => {
98 return this.compareStrings(_.flatten(newProblems))
99 })
100 })
101 },
102 messageOrHint () {
103 return this.compareStrings(this.problems)
104 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected