mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-13 14:39:52 +03:00
d115204d9f
no issue refs TryGhost/Ghost#11538 * Added members label handling v1 * Added members label dropdown in list screen * Updated selected labels and member list UI refactor * Added v1 label add/delete modal * Added add label modal v1 * Fixed disabled check for new label save * First stab at member filters layout * Updated member detail screen design * Member detail refinements * Added basic editing for member labels * Fixed label deletion from members list * Updated filtered list header * Refinements for dropdown and empty filter state * Refined label modal * Updated member labels fetch logic * Added custom dropdown component for labels * Refined style for dropdown * Refined dropdown button * Restructure and refine members dropdown styles * Added selected indication to dropdown * Fixed dropdown footer style * Removed member label placeholder * Removed add label from member list actions * New label refinements * Added confirmation modal for label delete * Added duplicate validation check for labels * Updated validation check with slug * Updated copy * Updated actions dropdown copy * Fixed visual glitch of dropdown on FF * Hide scrollbar for labels dropdown Co-authored-by: Peter Zimon <peter.zimon@gmail.com>
18 lines
487 B
JavaScript
18 lines
487 B
JavaScript
import Model, {attr} from '@ember-data/model';
|
|
import ValidationEngine from 'ghost-admin/mixins/validation-engine';
|
|
import {inject as service} from '@ember/service';
|
|
|
|
export default Model.extend(ValidationEngine, {
|
|
validationType: 'label',
|
|
|
|
name: attr('string'),
|
|
slug: attr('string'),
|
|
createdAtUTC: attr('moment-utc'),
|
|
updatedAtUTC: attr('moment-utc'),
|
|
createdBy: attr('number'),
|
|
updatedBy: attr('number'),
|
|
count: attr('raw'),
|
|
|
|
feature: service()
|
|
});
|