Skip to content
This repository has been archived by the owner on Aug 3, 2024. It is now read-only.

Commit

Permalink
Add button to flags page in dev mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Prospector committed Jun 7, 2024
1 parent 049cc45 commit 9a2998f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
18 changes: 17 additions & 1 deletion layouts/default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,10 @@
<ModerationIcon class="icon" />
<span class="title">{{ formatMessage(commonMessages.moderationLabel) }}</span>
</NuxtLink>
<NuxtLink v-if="flags.developerMode" class="item button-transparent" to="/flags">
<ReportIcon class="icon" />
<span class="title">Feature flags</span>
</NuxtLink>
<NuxtLink
v-if="!cosmetics.hideModrinthAppPromos"
class="item button-transparent primary-color"
Expand Down Expand Up @@ -228,6 +232,10 @@
<ModerationIcon aria-hidden="true" />
{{ formatMessage(commonMessages.moderationLabel) }}
</NuxtLink>
<NuxtLink v-if="flags.developerMode" class="iconified-button" to="/flags">
<ReportIcon aria-hidden="true" />
Feature flags
</NuxtLink>
</template>
<NuxtLink class="iconified-button" to="/settings">
<SettingsIcon aria-hidden="true" />
Expand Down Expand Up @@ -411,7 +419,15 @@
</div>
</template>
<script setup>
import { LogInIcon, DownloadIcon, LibraryIcon, XIcon, IssuesIcon, Button } from 'omorphia'
import {
LogInIcon,
DownloadIcon,
LibraryIcon,
XIcon,
IssuesIcon,
Button,
ReportIcon,
} from 'omorphia'
import HamburgerIcon from '~/assets/images/utils/hamburger.svg'
import CrossIcon from '~/assets/images/utils/x.svg'
import SearchIcon from '~/assets/images/utils/search.svg'
Expand Down
3 changes: 2 additions & 1 deletion pages/[type]/[id].vue
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,8 @@
:route="route"
/>
</section>
<div class="normal-page__info"><div
<div class="normal-page__info">
<div
v-if="
flags.newProjectLinks &&
(project.issues_url ||
Expand Down

0 comments on commit 9a2998f

Please sign in to comment.