Files
directus/src/interfaces/status
Rijk van Zanten 31ef7a48c9 Various fixes (#515)
* 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
2020-05-01 18:08:37 -04:00
..
2020-04-24 15:31:06 -04:00
2020-04-24 15:31:06 -04:00
2020-04-24 15:31:06 -04:00
2020-04-24 15:31:06 -04:00
2020-05-01 18:08:37 -04:00

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.