Add error message and disabling of preview button
This commit is contained in:
@@ -61,10 +61,14 @@ module.exports = class MarkdownImage extends BaseModel
|
||||
|
||||
return @_mimeType
|
||||
|
||||
isValid: ->
|
||||
return @status in [ Status.creatable, Status.unchanged, Status.updateable ]
|
||||
|
||||
Object.defineProperties @prototype,
|
||||
fullPath: {get:@prototype.getFullPath}
|
||||
imageUrl: {get:@prototype.getImageUrl}
|
||||
mimeType: {get:@prototype.getMimeType}
|
||||
valid: {get:@prototype.isValid}
|
||||
|
||||
# BaseModel Overrides ##########################################################################
|
||||
|
||||
|
||||
Reference in New Issue
Block a user