set new product inactive by default
This commit is contained in:
+1
-1
@@ -8,7 +8,7 @@ export default Discourse.Route.extend({
|
||||
let plans = [];
|
||||
|
||||
if (product_id === "new") {
|
||||
product = AdminProduct.create({ active: true, isNew: true });
|
||||
product = AdminProduct.create({ active: false, isNew: true });
|
||||
} else {
|
||||
product = AdminProduct.find(product_id);
|
||||
plans = AdminPlan.findAll({ product_id });
|
||||
|
||||
+3
@@ -26,6 +26,9 @@
|
||||
<p>
|
||||
<label for="active">{{i18n 'discourse_subscriptions.admin.products.product.active'}}</label>
|
||||
{{input type="checkbox" name="active" checked=model.product.active}}
|
||||
<div class="control-instructions">
|
||||
{{i18n 'discourse_subscriptions.admin.products.product.active_help'}}
|
||||
</div>
|
||||
</p>
|
||||
</form>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user