Simplify version label

This commit is contained in:
Kevin Sawicki 2013-05-21 14:45:12 -07:00
parent 25eb893837
commit e85e30c1f7
3 changed files with 2 additions and 10 deletions

View File

@ -18,8 +18,6 @@ class AtomPackage extends Package
resolvedMainModulePath: false
mainModule: null
getVersion: -> @metadata?.version ? '0.0.0'
load: ->
try
@loadMetadata()

View File

@ -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)

View File

@ -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