mirror of
https://github.com/discourse/discourse.git
synced 2025-06-01 17:40:43 +08:00
FIX/FEATURE: don't blow up when can't reach theme's repo, show problem themes on dashboard
This commit is contained in:
@ -54,6 +54,13 @@ const Theme = RestModel.extend({
|
||||
);
|
||||
},
|
||||
|
||||
@computed("remote_theme.last_error_text")
|
||||
remoteError(errorText) {
|
||||
if (errorText && errorText.length > 0) {
|
||||
return errorText;
|
||||
}
|
||||
},
|
||||
|
||||
getKey(field) {
|
||||
return `${field.target} ${field.name}`;
|
||||
},
|
||||
|
Reference in New Issue
Block a user