Show specific error messages before missing image
This commit is contained in:
@@ -130,12 +130,12 @@ module.exports = class MarkdownImageController extends BaseController
|
|||||||
@$loading.fadeOut duration:Duration.normal
|
@$loading.fadeOut duration:Duration.normal
|
||||||
@$loaded.fadeIn duration:Duration.normal, queue:true
|
@$loaded.fadeIn duration:Duration.normal, queue:true
|
||||||
|
|
||||||
if @model.status is MarkdownImage.Status.empty
|
if @errorMessage?
|
||||||
@$errorMessage.html 'please choose an image'
|
|
||||||
@$errorContainer.fadeIn duration:Duration.normal
|
|
||||||
else if @errorMessage?
|
|
||||||
@$errorMessage.html @errorMessage
|
@$errorMessage.html @errorMessage
|
||||||
@$errorContainer.fadeIn duration:Duration.normal
|
@$errorContainer.fadeIn duration:Duration.normal
|
||||||
|
else if @model.status is MarkdownImage.Status.empty
|
||||||
|
@$errorMessage.html 'please choose an image'
|
||||||
|
@$errorContainer.fadeIn duration:Duration.normal
|
||||||
else
|
else
|
||||||
@$errorContainer.fadeOut duration:Duration.normal
|
@$errorContainer.fadeOut duration:Duration.normal
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user