From deea64e83978558256fa12820dea7344e12f2d4a Mon Sep 17 00:00:00 2001 From: Matteo Pagliazzi Date: Wed, 17 Jan 2018 19:33:21 +0100 Subject: [PATCH] more fixes for the task modal --- website/client/components/tasks/taskModal.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/website/client/components/tasks/taskModal.vue b/website/client/components/tasks/taskModal.vue index 3f3ba1da26..d3bc53bcd6 100644 --- a/website/client/components/tasks/taskModal.vue +++ b/website/client/components/tasks/taskModal.vue @@ -229,12 +229,12 @@ .custom-control.custom-radio.custom-control-inline(v-for="attr in ATTRIBUTES", :key="attr") input.custom-control-input(:id="`attribute-${attr}`", type="radio", :value="attr", v-model="task.attribute") label.custom-control-label.attr-description(:for="`attribute-${attr}`", v-once, v-b-popover.hover="$t(`${attr}Text`)") {{ $t(attributesStrings[attr]) }} - .delete-task-btn.d-flex.justify-content-center.align-items-middle(@click="destroy()", v-if="purpose !== 'create'") + .delete-task-btn.d-flex.justify-content-center.align-items-middle(@click="destroy()", v-if="purpose !== 'create' && !challengeAccessRequired") .svg-icon.d-inline-b(v-html="icons.destroy") span {{ $t('deleteTask') }} .task-modal-footer.d-flex.justify-content-center.align-items-center(slot="modal-footer") - span.cancel-task-btn(v-once, @click="cancel()") {{ $t('cancel') }} + .cancel-task-btn(v-once, @click="cancel()") {{ $t('cancel') }} button.btn.btn-primary(type="submit", v-once) {{ $t('save') }} @@ -552,8 +552,6 @@ } .delete-task-btn, .cancel-task-btn { - margin-top: 32px; - margin-bottom: 8px; cursor: pointer; &:hover, &:focus, &:active { @@ -562,6 +560,8 @@ } .delete-task-btn { + margin-top: 32px; + margin-bottom: 8px; color: $red-50; .svg-icon {