-
Notifications
You must be signed in to change notification settings - Fork 453
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
See #56. Add "Beautification in progress" view.
- Loading branch information
Showing
2 changed files
with
51 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{View} = require "atom" | ||
|
||
module.exports = | ||
class LoadingView extends View | ||
@content: -> | ||
@div | ||
class: 'atom-beautify message-panel', => | ||
@div | ||
class: 'overlay from-top', => | ||
@div class: "tool-panel panel-bottom", => | ||
@div class: "inset-panel", => | ||
@div class: "panel-heading", => | ||
@div class: 'btn-toolbar pull-right', => | ||
@button | ||
class: 'btn' | ||
click: 'hide' | ||
'Hide' | ||
@span | ||
class: 'text-primary' | ||
outlet: 'title' | ||
'Atom Beautify' | ||
@div | ||
class: "panel-body padded select-list text-center" | ||
outlet: 'body' | ||
=> | ||
@div => | ||
@span | ||
class: 'text-center loading loading-spinner-large inline-block' | ||
@div | ||
class: '' | ||
'Beautification in progress.' | ||
|
||
hide: (event, element) => | ||
@detach() | ||
|
||
show: => | ||
if not @.hasParent() | ||
atom.workspaceView.appendToTop @ |