Loading screen on editor / source init state

This commit is contained in:
NGPixel
2017-04-02 23:27:07 -04:00
parent 1ced194cd2
commit 1ba115a997
13 changed files with 150 additions and 237 deletions

View File

@@ -4,6 +4,7 @@ import $ from 'jquery'
import * as ace from 'brace'
import 'brace/theme/tomorrow_night'
import 'brace/mode/markdown'
import pageLoader from '../components/page-loader'
module.exports = (alerts) => {
if ($('#page-type-source').length) {
@@ -20,5 +21,9 @@ module.exports = (alerts) => {
require('../modals/create.js')(currentBasePath)
require('../modals/move.js')(currentBasePath, alerts)
scEditor.renderer.on('afterRender', () => {
pageLoader.complete()
})
}
}