Changed the defaults key for new-style copy alerts to be the same
as what was used for legacy copy alert messages; this means that
users who set editor defaults prior to upgrading are more likely
to have the Copy Alerts button be active out of the box.
Also moved the location of Add/Edit Copy Alerts in the defaults
tab.
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
</button>
<button
class="btn btn-default"
- ng-disabled="!defaults.copy_alerts"
+ ng-disabled="!defaults.attributes.alerts"
ng-click="copy_alerts_dialog(workingGridControls.selectedItems())"
type="button">
[% l('Copy Alerts') %]
<div class="col-xs-6">
<label>
<input type="checkbox" ng-change="saveDefaults()" ng-model="defaults.attributes.alerts"/>
- [% l('Alerts') %]
+ [% l('Add/Edit Copy Alerts') %]
</label>
</div>
</div>
</div>
</div>
- <div class="row">
- <div class="col-xs-6">
- <label>
- <input type="checkbox" ng-change="saveDefaults()" ng-model="defaults.copy_alerts"/>
- [% l('Add/Edit Copy Alerts') %]
- </label>
- </div>
- </div>
</div>
<div class="col-md-4">
statcats : true,
copy_notes : true,
copy_tags : true,
- copy_alerts : true,
attributes : {
status : true,
loan_duration : true,
location : true,
holdable : true,
age_protect : true,
- floating : true
+ floating : true,
+ alerts : true
}
};