mirror of
https://github.com/hcengineering/platform.git
synced 2025-05-12 18:35:45 +00:00
Change type warning (#8408)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
parent
8f60c47eb2
commit
81f57d5625
@ -29,6 +29,7 @@
|
||||
"EditView": "Upravit zobrazení",
|
||||
"SelectViewType": "Vybrat typ zobrazení",
|
||||
"Document": "Dokument",
|
||||
"ChangeType": "Změnit typ"
|
||||
"ChangeType": "Změnit typ",
|
||||
"ChangeTypeWarning": "Varování: Změna typu karty odstraní všechna data pro jakýkoliv atribut, který v cílovém typu neexistuje. Předchozí data atributu mohou být obnoveny změnou karty zpět na předchozí typ. Obsah karty nebude ovlivněn."
|
||||
}
|
||||
}
|
@ -29,6 +29,7 @@
|
||||
"EditView": "Ansicht bearbeiten",
|
||||
"SelectViewType": "Ansichtstyp auswählen",
|
||||
"Document": "Dokument",
|
||||
"ChangeType": "Typ ändern"
|
||||
"ChangeType": "Typ ändern",
|
||||
"ChangeTypeWarning": "Warnung: Das Ändern des Typs einer Karte wird alle Daten für alle Attribute entfernen, die nicht auf dem Zieltyp vorhanden sind. Vorherige Attributdaten können wiederhergestellt werden, indem Sie die Karte auf einen früheren Typ zurücksetzen. Karteninhalt wird nicht betroffen."
|
||||
}
|
||||
}
|
||||
|
@ -29,6 +29,7 @@
|
||||
"EditView": "Edit View",
|
||||
"SelectViewType": "Select View Type",
|
||||
"Document": "Document",
|
||||
"ChangeType": "Change type"
|
||||
"ChangeType": "Change type",
|
||||
"ChangeTypeWarning": "Warning: Changing the Type of a Card will remove all data for any attributes that do not exist on the target Type. Previous attribute data can be restored by changing the Card back to a previous Type. Card content will not be affected."
|
||||
}
|
||||
}
|
@ -29,6 +29,7 @@
|
||||
"EditView": "Editar vista",
|
||||
"SelectViewType": "Seleccionar tipo de vista",
|
||||
"Document": "Documento",
|
||||
"ChangeType": "Cambiar tipo"
|
||||
"ChangeType": "Cambiar tipo",
|
||||
"ChangeTypeWarning": "Advertencia: Cambiar el tipo de una tarjeta eliminará todos los datos para cualquier atributo que no exista en el tipo de destino. Los datos previos del atributo pueden ser restaurados cambiando la tarjeta de nuevo a un tipo anterior. El contenido de la tarjeta no será afectado."
|
||||
}
|
||||
}
|
@ -29,6 +29,7 @@
|
||||
"EditView": "Modifier la vue",
|
||||
"SelectViewType": "Sélectionner le type de vue",
|
||||
"Document": "Document",
|
||||
"ChangeType": "Changer de type"
|
||||
"ChangeType": "Changer de type",
|
||||
"ChangeTypeWarning": "Avertissement : Changer le type d'une carte supprimera toutes les données pour tous les attributs qui ne sont pas dans le type cible. Les données précédentes de l'attribut peuvent être restaurées en changeant la carte en arrière. Le contenu de la carte ne sera pas affecté."
|
||||
}
|
||||
}
|
@ -29,6 +29,7 @@
|
||||
"EditView": "Modifica vista",
|
||||
"SelectViewType": "Seleziona il tipo di vista",
|
||||
"Document": "Documento",
|
||||
"ChangeType": "Cambia tipo"
|
||||
"ChangeType": "Cambia tipo",
|
||||
"ChangeTypeWarning": "Avviso: Cambiare il tipo di un'scheda rimuoverà tutti i dati per qualsiasi attributo che non esistono nel tipo di destinazione. I dati precedenti dell'attributo possono essere ripristinati modificando nuovamente il carta in un tipo precedente. Il contenuto della scheda non sarà influenzato."
|
||||
}
|
||||
}
|
@ -29,6 +29,7 @@
|
||||
"EditView": "Editar visualização",
|
||||
"SelectViewType": "Selecionar tipo de visualização",
|
||||
"Document": "Documento",
|
||||
"ChangeType": "Alterar tipo"
|
||||
"ChangeType": "Alterar tipo",
|
||||
"ChangeTypeWarning": "Aviso: Alterar o tipo de um cartão irá remover todos os dados para quaisquer atributos que não existem no tipo de destino. Dados anteriores do atributo podem ser restaurados alterando o cartão de volta para um tipo anterior. O conteúdo do cartão não será afetado."
|
||||
}
|
||||
}
|
@ -29,6 +29,7 @@
|
||||
"EditView": "Редактировать представление",
|
||||
"SelectViewType": "Выбрать тип представления",
|
||||
"Document": "Документ",
|
||||
"ChangeType": "Изменить тип"
|
||||
"ChangeType": "Изменить тип",
|
||||
"ChangeTypeWarning": "Внимание: Изменение типа удалит все данные для любых атрибутов, которые не существуют в целевом типе. Предыдущие данные атрибутов могут быть восстановлены, изменением на предыдущий тип. Содержимое не будет затронуто."
|
||||
}
|
||||
}
|
@ -29,6 +29,7 @@
|
||||
"EditView": "编辑视图",
|
||||
"SelectViewType": "选择视图类型",
|
||||
"Document": "文档",
|
||||
"ChangeType": "更改类型"
|
||||
"ChangeType": "更改类型",
|
||||
"ChangeTypeWarning": "警告:更改卡片类型将删除任何不存在于目标类型中的任何属性的所有数据。之前的属性数据可以通过将卡片回到以前的类型来恢复。卡片内容将不会受到影响。"
|
||||
}
|
||||
}
|
@ -16,8 +16,8 @@
|
||||
import { Analytics } from '@hcengineering/analytics'
|
||||
import { Card, CardEvents, MasterTag } from '@hcengineering/card'
|
||||
import { AnyAttribute, Class, ClassifierKind, Doc, fillDefaults, Ref } from '@hcengineering/core'
|
||||
import { Card as CardModal, createQuery, getClient } from '@hcengineering/presentation'
|
||||
import { DropdownIntlItem, NestedDropdown } from '@hcengineering/ui'
|
||||
import { Card as CardModal, getClient } from '@hcengineering/presentation'
|
||||
import { DropdownIntlItem, Label, NestedDropdown } from '@hcengineering/ui'
|
||||
import { createEventDispatcher } from 'svelte'
|
||||
import { deepEqual } from 'fast-equals'
|
||||
import card from '../plugin'
|
||||
@ -73,12 +73,6 @@
|
||||
return res
|
||||
}
|
||||
|
||||
const clQuery = createQuery()
|
||||
|
||||
clQuery.query(card.class.MasterTag, { _class: card.class.MasterTag }, (res) => {
|
||||
filterClasses()
|
||||
})
|
||||
|
||||
const dispatch = createEventDispatcher()
|
||||
|
||||
function filterClasses (): [DropdownIntlItem, DropdownIntlItem[]][] {
|
||||
@ -131,6 +125,9 @@
|
||||
}}
|
||||
on:changeContent
|
||||
>
|
||||
<div class="mb-2">
|
||||
<Label label={card.string.ChangeTypeWarning} />
|
||||
</div>
|
||||
<NestedDropdown
|
||||
items={classes}
|
||||
on:selected={(e) => {
|
||||
|
@ -59,10 +59,12 @@
|
||||
.then((res) => (subEditor = res))
|
||||
.catch((err) => {
|
||||
subEditor = undefined
|
||||
subEditorTitle = undefined
|
||||
console.error(err)
|
||||
})
|
||||
} else {
|
||||
selectedSubObjectId = undefined
|
||||
subEditorTitle = undefined
|
||||
subEditor = undefined
|
||||
}
|
||||
}
|
||||
|
@ -71,6 +71,7 @@ export default mergeIds(cardId, card, {
|
||||
CreateChild: '' as IntlString,
|
||||
Children: '' as IntlString,
|
||||
Document: '' as IntlString,
|
||||
ChangeType: '' as IntlString
|
||||
ChangeType: '' as IntlString,
|
||||
ChangeTypeWarning: '' as IntlString
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user