From 8a97d9919b35f1cdc37dea6a142ef2208987ff19 Mon Sep 17 00:00:00 2001 From: Mateus Machado Luna Date: Wed, 31 Oct 2018 09:48:51 -0300 Subject: [PATCH] Css adjustments on metadatum input types. --- .../edition/item-metadata-bulk-edition-form.vue | 11 ++++++++++- src/admin/components/lists/filters-list.vue | 1 + src/admin/components/lists/metadata-list.vue | 1 + src/admin/scss/_tainacan-form.scss | 2 +- .../metadata-types/relationship/Relationship.vue | 1 + src/classes/metadata-types/selectbox/Selectbox.vue | 1 + 6 files changed, 15 insertions(+), 2 deletions(-) diff --git a/src/admin/components/edition/item-metadata-bulk-edition-form.vue b/src/admin/components/edition/item-metadata-bulk-edition-form.vue index ad29ed767..a6029e64f 100644 --- a/src/admin/components/edition/item-metadata-bulk-edition-form.vue +++ b/src/admin/components/edition/item-metadata-bulk-edition-form.vue @@ -267,6 +267,7 @@ export default { ]), ...mapGetters('bulkedition', [ 'getItemIdInSequence', + 'getActionResult', 'getGroup', 'getLastUpdated' ]), @@ -297,7 +298,15 @@ export default { } }).then(() => { this.isExecutingBulkEdit = false; - // this.finalizeProcedure(criterion); + + let actionResult = this.getActionResult(); + console.log(actionResult); + if(actionResult.constructor.name === 'Object' && (actionResult.data && actionResult.data.status.toString().split('')[0] != 2) || actionResult.error_message) { + console.log("Xiii, deu ruim :("); + } else { + console.log("Tudo bem por aqui."); + } + }).catch(() => this.isExecutingBulkEdit = false); } diff --git a/src/admin/components/lists/filters-list.vue b/src/admin/components/lists/filters-list.vue index 3f52b86f3..797efec99 100644 --- a/src/admin/components/lists/filters-list.vue +++ b/src/admin/components/lists/filters-list.vue @@ -585,6 +585,7 @@ export default { font-style: italic; font-weight: bold; color: $danger; + margin-left: 0.5rem; } .controls { position: absolute; diff --git a/src/admin/components/lists/metadata-list.vue b/src/admin/components/lists/metadata-list.vue index 1738212cf..530e1303e 100644 --- a/src/admin/components/lists/metadata-list.vue +++ b/src/admin/components/lists/metadata-list.vue @@ -888,6 +888,7 @@ export default { font-style: italic; font-weight: bold; color: $danger; + margin-left: 0.5rem; } .controls { position: absolute; diff --git a/src/admin/scss/_tainacan-form.scss b/src/admin/scss/_tainacan-form.scss index 47164329c..0efd3a793 100644 --- a/src/admin/scss/_tainacan-form.scss +++ b/src/admin/scss/_tainacan-form.scss @@ -33,7 +33,7 @@ vertical-align: top; } .required-metadatum-asterisk { - color: $gray3; + color: $gray5; &.is-danger { color: $danger; } diff --git a/src/classes/metadata-types/relationship/Relationship.vue b/src/classes/metadata-types/relationship/Relationship.vue index 1b5532bd7..e5d697a52 100644 --- a/src/classes/metadata-types/relationship/Relationship.vue +++ b/src/classes/metadata-types/relationship/Relationship.vue @@ -1,6 +1,7 @@