From 67ee0b72d33fe26aca89065b6c2e952acc79cbe7 Mon Sep 17 00:00:00 2001 From: SabreCat Date: Tue, 23 Aug 2022 12:40:32 -0500 Subject: [PATCH] fix(tasks): don't show reset counter control on group tasks --- website/client/src/components/tasks/taskModal.vue | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/website/client/src/components/tasks/taskModal.vue b/website/client/src/components/tasks/taskModal.vue index 3fdfdf7b66..6a2d7b0372 100644 --- a/website/client/src/components/tasks/taskModal.vue +++ b/website/client/src/components/tasks/taskModal.vue @@ -386,7 +386,7 @@
@@ -1092,11 +1092,11 @@ export default { isChallengeTask () { return Boolean(this.task.challenge && this.task.challenge.id); }, - onUserPage () { + isUserTask () { return !this.challengeId && !this.groupId; }, challengeAccessRequired () { - return this.onUserPage && this.isChallengeTask; + return this.isUserTask && this.isChallengeTask; }, isOriginalChallengeTask () { const isUserChallenge = Boolean(this.task.userId); @@ -1113,9 +1113,6 @@ export default { const type = this.$t(this.task.type); return this.$t(this.purpose === 'edit' ? 'editATask' : 'createTask', { type }); }, - isUserTask () { - return !this.challengeId && !this.groupId; - }, repeatSuffix () { const { task } = this;