FEATURE: Add new site setting list type with name and values (#16045)

These changes include a bug fix because allow_any attribute of site
settings was completely ignored before.
This commit is contained in:
Bianca Nenciu
2022-03-08 13:18:43 +02:00
committed by GitHub
parent fd34ddef8a
commit 4fe99e39c3
5 changed files with 55 additions and 0 deletions

View File

@ -1,6 +1,7 @@
import I18n from "I18n";
import Mixin from "@ember/object/mixin";
import { computed } from "@ember/object";
import { readOnly } from "@ember/object/computed";
import discourseComputed from "discourse-common/utils/decorators";
import { isPresent } from "@ember/utils";
@ -66,4 +67,6 @@ export default Mixin.create({
return "admin.settings.none";
}
},
anyValue: readOnly("allow_any"),
});