UX: Remove Convert option for system themes (#12033)

This commit is contained in:
Penar Musaraj
2021-02-10 19:20:13 -05:00
committed by GitHub
parent a1955b0542
commit f188091a55
2 changed files with 7 additions and 2 deletions

View File

@@ -231,6 +231,11 @@ export default Controller.extend({
: remoteThemeUrl;
},
@discourseComputed("model.user.id", "model.default")
showConvert(userId, defaultTheme) {
return userId > 0 && !defaultTheme;
},
actions: {
updateToLatest() {
this.set("updatingRemote", true);