mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-11-10 10:17:11 +03:00
Show loading message in available tab
This commit is contained in:
parent
80a55bb69a
commit
ce20bba792
@ -7,10 +7,13 @@ packageManager = require 'package-manager'
|
||||
module.exports =
|
||||
class AvailablePackagesConfigPanel extends ConfigPanel
|
||||
@content: ->
|
||||
@div class: 'available-packages'
|
||||
@div class: 'available-packages', =>
|
||||
@div outlet: 'loadingArea', class: 'alert alert-info loading-area', =>
|
||||
@span 'Loading available packages\u2026'
|
||||
|
||||
initialize: ->
|
||||
packageManager.getAvailable (error, packages) =>
|
||||
@loadingArea.hide()
|
||||
if error?
|
||||
console.error(error.stack ? error)
|
||||
else
|
||||
|
@ -151,6 +151,19 @@
|
||||
margin-left: 10px;
|
||||
}
|
||||
|
||||
.loading-area {
|
||||
span {
|
||||
.mini-icon(hourglass);
|
||||
|
||||
&:before {
|
||||
font-size: 1.1em;
|
||||
width: 1.1em;
|
||||
height: 1.1em;
|
||||
margin-right: 5px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.package-panel {
|
||||
.nav {
|
||||
margin-bottom: 10px;
|
||||
|
Loading…
Reference in New Issue
Block a user