mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-22 18:31:57 +03:00
72590083f3
refs https://github.com/TryGhost/Team/issues/585 requires https://github.com/TryGhost/Ghost/pull/12082 When a label or status filter is selected on the members screen show a "Delete selected" option in the actions dropdown. Bulk deleted members will _not_ have any subscription data modified in Stripe, if a member should be deleted and have their subscription cancelled it's necessary to do that on a per-member basis. - updated bulk delete handling to match API - added link to bulk delete confirmation modal in members actions dropdown (only shown when label, status, or search is used) - updated testing framework for members - added label factory for easier test setup - updated `GET /members` and `DEL /members` endpoints to work with label filters - updated test selectors for easier reference in tests
16 lines
440 B
JavaScript
16 lines
440 B
JavaScript
import moment from 'moment';
|
|
import {Factory} from 'ember-cli-mirage';
|
|
|
|
export default Factory.extend({
|
|
createdAt() { return moment().toISOString(); },
|
|
createdBy: 1,
|
|
name(i) { return `Label ${i}`; },
|
|
slug(i) { return `label-${i}`; },
|
|
updatedAt() { return moment().toISOString(); },
|
|
updatedBy: 1,
|
|
count() {
|
|
// this gets updated automatically by the label serializer
|
|
return {members: 0};
|
|
}
|
|
});
|