mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: changing tag group privacy setting was not consistent (#5818)
This commit is contained in:
@@ -5,8 +5,12 @@ export default Ember.Component.extend({
|
||||
type : "radio",
|
||||
attributeBindings : ["name", "type", "value", "checked:checked", "disabled:disabled"],
|
||||
|
||||
click: function() {
|
||||
this.set("selection", this.$().val());
|
||||
click() {
|
||||
const value = this.$().val();
|
||||
if (this.get("selection") === value) {
|
||||
this.set("selection", undefined);
|
||||
}
|
||||
this.set("selection", value);
|
||||
},
|
||||
|
||||
@computed('value', 'selection')
|
||||
|
||||
Reference in New Issue
Block a user