diff --git a/website/client/src/assets/scss/create-task.scss b/website/client/src/assets/scss/create-task.scss
index 9ffb801b8b..42a04b2522 100644
--- a/website/client/src/assets/scss/create-task.scss
+++ b/website/client/src/assets/scss/create-task.scss
@@ -64,30 +64,10 @@
overflow-x: hidden;
}
-.diamond-btn {
- margin-left: 8px;
- background: $white;
- width: 40px;
- height: 40px;
- display: flex;
- justify-content: center;
- align-items: center;
- border-radius: 2px;
- box-shadow: 0 1px 3px 0 rgba(26, 24, 29, 0.12), 0 1px 2px 0 rgba(26, 24, 29, 0.24);
- cursor: pointer;
- color: $gray-200;
-
- &:hover:not(.create-btn) {
- color: $purple-400;
- box-shadow: 0 1px 8px 0 rgba($black, 0.12), 0 4px 4px 0 rgba($black, 0.16);
- }
-}
-
.create-btn {
color: $white;
background-color: $purple-200;
height: 32px;
- width: 112px;
.svg-icon {
color: $purple-500;
diff --git a/website/client/src/assets/scss/task.scss b/website/client/src/assets/scss/task.scss
index cdb4fb81e7..5ef586549b 100644
--- a/website/client/src/assets/scss/task.scss
+++ b/website/client/src/assets/scss/task.scss
@@ -258,7 +258,7 @@
&-modal {
&-bg { background: $purple-300 !important; }
- &-headings { color: $white; }
+ &-headings { color: $white !important; }
&-icon { color: $purple-300 !important; }
&-text { color: $black !important; }
&-content {
diff --git a/website/client/src/components/group-plans/taskInformation.vue b/website/client/src/components/group-plans/taskInformation.vue
index 154c9cd947..ef428ce4a9 100644
--- a/website/client/src/components/group-plans/taskInformation.vue
+++ b/website/client/src/components/group-plans/taskInformation.vue
@@ -44,26 +44,26 @@
@change="changeMirrorPreference"
/>
-
+
{{ $t('addTask') }}
+
-
+ >
{{ completionsCount }}/{{ assignedUsersCount }}
@@ -95,12 +95,11 @@
{{ formattedCompletionTime }}
@@ -126,6 +125,7 @@
height: 16px;
border-radius: 2px;
padding-left: 2px;
+ padding-top: 1px;
background-color: #e1e0e3;
svg {
@@ -150,6 +150,7 @@
border-bottom-left-radius: 4px;
border-bottom-right-radius: 4px;
font-size: 12px;
+ line-height: 1.334;
padding-bottom: 0.25rem;
padding-top: 0.25rem;
z-index: 9;
@@ -222,8 +223,7 @@
}
.users-icon {
- width: 16px;
- height: 16px;
+ margin-top: -1px;
}
@@ -323,13 +323,14 @@ export default {
return this.$t('error'); // task is open, or the other conditions aren't hitting right
},
singleAssignLastDone () {
- const userId = this.task.group.assignedUsers[0];
- const completion = this.task.group.assignedUsersDetail[userId];
- return completion.completedDate;
+ const completion = this.task?.group?.assignedUsersDetail[this.user._id];
+ if (completion) return completion.completedDate;
+ return null;
},
showGreen () {
if (this.assignedUsersCount !== 1) return false;
- return this.singleAssignLastDone && moment().diff(this.singleAssignLastDone, 'days') < 1;
+ return this.singleAssignLastDone
+ && this.task?.group?.assignedUsersDetail[this.user._id].completed;
},
formattedCompletionTime () {
if (!this.singleAssignLastDone) return '';
diff --git a/website/client/src/components/tasks/taskModal.vue b/website/client/src/components/tasks/taskModal.vue
index 2b06f1eb72..65fa9e10b8 100644
--- a/website/client/src/components/tasks/taskModal.vue
+++ b/website/client/src/components/tasks/taskModal.vue
@@ -592,7 +592,7 @@
@import '~@/assets/scss/colors.scss';
#task-modal {
- a {
+ a:not(.dropdown-item) {
font-size: 12px;
line-height: 1.33;
color: $blue-10;
diff --git a/website/client/src/components/tasks/taskSummary.vue b/website/client/src/components/tasks/taskSummary.vue
index e88555dbed..1febc771fc 100644
--- a/website/client/src/components/tasks/taskSummary.vue
+++ b/website/client/src/components/tasks/taskSummary.vue
@@ -75,7 +75,8 @@