Skip to content

Commit

Permalink
Adding possibility for project owners to star and watch their own pro…
Browse files Browse the repository at this point in the history
…ject (#1257)
  • Loading branch information
joshi1999 authored Aug 11, 2023
1 parent 6e6168f commit 3704cdf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/components/projects/ProjectHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ function requiresConfirmation(): ConfirmationType {
<span v-else-if="starred">{{ i18n.t("project.actions.unstar") }}</span>
<span v-else>{{ i18n.t("project.actions.star") }}</span>
</template>
<Button button-type="secondary" size="small" :disabled="isOwn" @click="toggleStar">
<Button button-type="secondary" size="small" @click="toggleStar">
<IconMdiStar v-if="starred" />
<IconMdiStarOutline v-else />
<span class="ml-2">{{ starredCount.toLocaleString("en-US") }}</span>
Expand All @@ -165,7 +165,7 @@ function requiresConfirmation(): ConfirmationType {
<span v-else-if="watching">{{ i18n.t("project.actions.unwatch") }}</span>
<span v-else>{{ i18n.t("project.actions.watch") }}</span>
</template>
<Button button-type="secondary" size="small" :disabled="isOwn" @click="toggleWatch">
<Button button-type="secondary" size="small" @click="toggleWatch">
<IconMdiBell v-if="watching" />
<IconMdiBellOutline v-else />
<span class="ml-2">{{ watchingCount.toLocaleString("en-US") }}</span>
Expand Down

0 comments on commit 3704cdf

Please sign in to comment.