mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-20 15:37:46 +03:00
Simplify version label
This commit is contained in:
parent
25eb893837
commit
e85e30c1f7
@ -18,8 +18,6 @@ class AtomPackage extends Package
|
||||
resolvedMainModulePath: false
|
||||
mainModule: null
|
||||
|
||||
getVersion: -> @metadata?.version ? '0.0.0'
|
||||
|
||||
load: ->
|
||||
try
|
||||
@loadMetadata()
|
||||
|
@ -30,12 +30,7 @@ class PackageConfigView extends View
|
||||
|
||||
initialize: (@pack, @queue) ->
|
||||
@name.text(@pack.name)
|
||||
|
||||
installedVersion = atom.getLoadedPackage(@pack.name)?.getVersion()
|
||||
if installedVersion and @pack.version isnt installedVersion
|
||||
@versions.text("Version: #{@pack.version} (#{installedVersion} installed)")
|
||||
else
|
||||
@versions.text("Version: #{@pack.version}")
|
||||
@versions.text("Version: #{@pack.version}")
|
||||
|
||||
if @pack.descriptionHtml
|
||||
@description.html(@pack.descriptionHtml)
|
||||
|
@ -23,8 +23,7 @@ class TextMatePackage extends Package
|
||||
@syntaxesPath = fsUtils.join(@path, "Syntaxes")
|
||||
@grammars = []
|
||||
@scopedProperties = []
|
||||
|
||||
getVersion: -> '0.0.0'
|
||||
@metadata = {@name, version: '0.0.0'}
|
||||
|
||||
load: ({sync}={}) ->
|
||||
if sync
|
||||
|
Loading…
Reference in New Issue
Block a user