|
|
@ -103,11 +103,14 @@
|
|
|
|
migrateDocs: ->
|
|
|
|
migrateDocs: ->
|
|
|
|
for slug in @settings.getDocs() when not @docs.findBy('slug', slug)
|
|
|
|
for slug in @settings.getDocs() when not @docs.findBy('slug', slug)
|
|
|
|
needsSaving = true
|
|
|
|
needsSaving = true
|
|
|
|
if doc = @disabledDocs.findBy('slug_without_version', slug)
|
|
|
|
doc = @disabledDocs.findBy('slug', 'node~4_lts') if slug == 'node~4.2_lts'
|
|
|
|
|
|
|
|
doc ||= @disabledDocs.findBy('slug_without_version', slug)
|
|
|
|
|
|
|
|
if doc
|
|
|
|
@disabledDocs.remove(doc)
|
|
|
|
@disabledDocs.remove(doc)
|
|
|
|
@docs.add(doc)
|
|
|
|
@docs.add(doc)
|
|
|
|
|
|
|
|
|
|
|
|
@saveDocs() if needsSaving
|
|
|
|
@saveDocs() if needsSaving
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
|
|
|
|
enableDoc: (doc, _onSuccess, onError) ->
|
|
|
|
enableDoc: (doc, _onSuccess, onError) ->
|
|
|
|
return if @docs.contains(doc)
|
|
|
|
return if @docs.contains(doc)
|
|
|
|