mirror of
https://github.com/directus/directus.git
synced 2026-04-03 03:00:39 -04:00
* Fix image deselection when newID isn't set * Fix svg support in image interface * Render correct title on file library detail * Default to interfaces based on type * Remove unused import * Don't show dropdown indicator on field label when readonly * Accept datetime_created datetime_updated in datetime interface * Add reused value-null component * Fix z-index of v-badge * Close status on content click * Move edit button to header on file detail * Increase tooltip z-index * Add warning notice to edit image modal * Fix extra spacing in divider interface * Use wide style for notifications when drawer is open * Click on image to open file preview
Status Interface
Renders a dropdown with the available status options.
Options
| Option | Description | Default |
|---|---|---|
status_mapping |
What statuses are available | null |
Status Mapping format
type Status = {
[key: string]: {
name: string;
text_color: string;
background_color: string;
soft_delete: boolean;
published: boolean;
}
}
status_mapping is the only option for an interface that isn't camelCased. This is due to the fact
that the API relies on the same setting for it's permissions management.