diff --git a/ProcessMaker/Http/Resources/V1_1/CaseResource.php b/ProcessMaker/Http/Resources/V1_1/CaseResource.php index 03d6afd2fc..ba4d25dc14 100644 --- a/ProcessMaker/Http/Resources/V1_1/CaseResource.php +++ b/ProcessMaker/Http/Resources/V1_1/CaseResource.php @@ -58,7 +58,7 @@ public function toArray($request): array */ private function getParticipantData(array $participants): array { - return array_map(fn($participant) => self::$users->get($participant), $participants); + return array_map(fn ($participant) => self::$users->get($participant), $participants); } /** diff --git a/ProcessMaker/ProcessTranslations/ScreenTranslation.php b/ProcessMaker/ProcessTranslations/ScreenTranslation.php index 4a1089fa67..3925481f92 100644 --- a/ProcessMaker/ProcessTranslations/ScreenTranslation.php +++ b/ProcessMaker/ProcessTranslations/ScreenTranslation.php @@ -28,7 +28,6 @@ public function applyTranslations($screen, $defaultLanguage = '') $language = $this->getTargetLanguage($defaultLanguage); - return $this->searchTranslations($screen['screen_id'], $config, $language); } diff --git a/devhub/pm-font/svg/trash.svg b/devhub/pm-font/svg/trash.svg new file mode 100644 index 0000000000..163615e4f1 --- /dev/null +++ b/devhub/pm-font/svg/trash.svg @@ -0,0 +1,3 @@ + + + diff --git a/resources/fonts/pm-font/index.html b/resources/fonts/pm-font/index.html index b43d9c263d..281a2aa4c4 100644 --- a/resources/fonts/pm-font/index.html +++ b/resources/fonts/pm-font/index.html @@ -115,7 +115,7 @@

ProcessMaker Icons4.12.0+alpha-3

fp-slideshow

fp-table

+
  • + +

    fp-trash

    +
  • +
  • ProcessMaker Icons4.12.0+alpha-3

    { router.push({ name: 'bundle-assets', params: { id: bundle.id } }); } -const deleteWaring = computed(() => { +const deleteWarning = computed(() => { const name = selected?.value.name; - return vue.$t('Are you sure you want to delete {{name}}?', { name }); + return vue.$t('Are you sure you want to delete {{name}}? The action is irreversible.', { name }); }); const confirmPublishNewVersionText = computed(() => { @@ -227,15 +229,8 @@ const confirmPublishNewVersionText = computed(() => {
    - -

    {{ deleteWaring }}'

    -
    + + @@ -311,6 +306,38 @@ const confirmPublishNewVersionText = computed(() => { } @import "styles/components/table"; +@import "styles/components/modal"; +::v-deep .delete-modal-style .modal-header .delete-icon { + width: 48px; + height: 48px; + background-color: #FEE6E5; + display: flex; + align-items: center; + justify-content: center; + border-radius: 8px; + color: #EC5962; + font-size: 26px; +} +::v-deep .delete-modal-style .modal-body-text { + font-size: 16px; + font-weight: 500; +} +::v-deep .delete-modal-style .modal-footer { + background-color: #FBFBFC; + border-top: 1px solid #E9ECF1; + border-bottom-left-radius: 16px; + border-bottom-right-radius: 16px; +} +::v-deep .delete-modal-style .modal-footer .btn-primary { + border: none; + background-color: #EC5962; + color: #FFFFFF; +} +::v-deep .delete-modal-style .modal-footer .btn-secondary { + border: 1px solid #D7DDE5; + background-color: #FFFFFF; + color: #20242A; +} .local-bundles-card { border-radius: 8px; diff --git a/resources/lang/en.json b/resources/lang/en.json index 818a86e8e0..1575ac60cc 100644 --- a/resources/lang/en.json +++ b/resources/lang/en.json @@ -143,6 +143,7 @@ "Are you sure you want to delete {{item}}? Deleting this asset will break any active tasks that are assigned.": "Are you sure you want to delete {{item}}? Deleting this asset will break any active tasks that are assigned.", "Are you sure you want to delete {{item}}?": "Are you sure you want to delete {{item}}?", "Are you sure you want to delete {{item}}": "Are your sure you want to delete {{item}}", + "Are you sure you want to delete {{name}}? The action is irreversible.": "Are you sure you want to delete {{name}}? The action is irreversible.", "Are you sure you want to delete expression {{item}}": "Are you sure you want to delete expression {{item}}", "Are you sure you want to delete the auth client": "Are you sure you want to delete the auth client", "Are you sure you want to delete the environment variable {{ name }} ?": "Are you sure you want to delete the environment variable {{ name }} ?", @@ -489,6 +490,7 @@ "Delete Categories": "Delete Categories", "Delete Category": "Delete Category", "Delete Comments": "Delete Comments", + "Delete Confirmation": "Delete Confirmation", "Delete Control": "Delete Control", "Delete Environment Variables": "Delete Environment Variables", "Delete Files": "Delete Files", diff --git a/resources/sass/components/modal.scss b/resources/sass/components/modal.scss new file mode 100644 index 0000000000..91b412377a --- /dev/null +++ b/resources/sass/components/modal.scss @@ -0,0 +1,40 @@ +::v-deep .modal-content { + border-radius: 16px; + border: 1px solid #E9ECF1; +} +::v-deep .modal-header { + border-bottom: none; +} +::v-deep .modal-title { + font-size: 24px; + font-weight: 500; +} +::v-deep .modal-body { + font-size: 14px; + font-weight: 400; +} +::v-deep .modal-footer { + border-top: none; + margin-top: 0px !important; +} +::v-deep .modal-footer .btn { + border-radius: 8px; + font-size: 14px; + font-weight: 500; +} +::v-deep .modal-footer .btn-secondary { + background-color: white; + border: none; + color: #20242A; + text-transform: none; +} +::v-deep .modal-footer .btn-secondary:hover { + background-color: #E9ECF1; +} +::v-deep .modal-footer .btn-primary { + background-color: #2773F3; + text-transform: none; +} +::v-deep .modal-footer .btn-primary:hover { + background-color: #1E5AC7; +}