diff --git a/app/javascript/dashboard/components-next/Contacts/ContactsCard/ContactsCard.story.vue b/app/javascript/dashboard/components-next/Contacts/ContactsCard/ContactsCard.story.vue deleted file mode 100644 index 8b06bf4e1..000000000 --- a/app/javascript/dashboard/components-next/Contacts/ContactsCard/ContactsCard.story.vue +++ /dev/null @@ -1,216 +0,0 @@ - - - - - - - {}" - @show-contact="() => {}" - /> - - - - - - {}" - @update-contact="() => {}" - @show-contact="() => {}" - /> - - - - - - {}" - @update-contact="() => {}" - @show-contact="() => {}" - /> - - - - - - {}" - @update-contact="() => {}" - @show-contact="() => {}" - /> - - - - diff --git a/app/javascript/dashboard/components-next/Contacts/ContactsForm/ContactsForm.story.vue b/app/javascript/dashboard/components-next/Contacts/ContactsForm/ContactsForm.story.vue deleted file mode 100644 index 35d36837f..000000000 --- a/app/javascript/dashboard/components-next/Contacts/ContactsForm/ContactsForm.story.vue +++ /dev/null @@ -1,101 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/app/javascript/dashboard/components-next/CustomAttributes/CheckboxAttribute.vue b/app/javascript/dashboard/components-next/CustomAttributes/CheckboxAttribute.vue index 896c1741d..d5ecc3aab 100644 --- a/app/javascript/dashboard/components-next/CustomAttributes/CheckboxAttribute.vue +++ b/app/javascript/dashboard/components-next/CustomAttributes/CheckboxAttribute.vue @@ -1,8 +1,10 @@ - @@ -28,13 +32,7 @@ const handleChange = event => { 'justify-end': !isEditingView, }" > - - + + + + + + + + + + + + + + Default: + + + + + Checked: + + + + + + + + + Last change: {{ lastChange }} + + + + + + + + + + diff --git a/app/javascript/dashboard/components-next/switch/Switch.vue b/app/javascript/dashboard/components-next/switch/Switch.vue new file mode 100644 index 000000000..e8f409c0e --- /dev/null +++ b/app/javascript/dashboard/components-next/switch/Switch.vue @@ -0,0 +1,38 @@ + + + + + {{ t('SWITCH.TOGGLE') }} + + + diff --git a/app/javascript/dashboard/i18n/locale/en/components.json b/app/javascript/dashboard/i18n/locale/en/components.json index 7a0533cef..2a728fe13 100644 --- a/app/javascript/dashboard/i18n/locale/en/components.json +++ b/app/javascript/dashboard/i18n/locale/en/components.json @@ -30,5 +30,8 @@ }, "BREADCRUMB": { "ARIA_LABEL": "Breadcrumb" + }, + "SWITCH": { + "TOGGLE": "Toggle switch" } }