Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Move archived and compact mode buttons to popover
Signed-off-by: Julius Härtl <[email protected]>
  • Loading branch information
juliusknorr committed Aug 29, 2020
commit 85ef1d2ed9e0abaf7ca0b6c84c19a31ca6d4a020
16 changes: 10 additions & 6 deletions src/components/Controls.vue
Original file line number Diff line number Diff line change
Expand Up @@ -170,18 +170,22 @@
</template>
</Popover>

<Actions :style="archivedOpacity" :title="t('deck', 'Show archived cards')">
<Actions :style="archivedOpacity">
<ActionButton
icon="icon-archive"
@click="toggleShowArchived" />
</Actions>
<Actions :title="t('deck', 'Toggle compact mode')">
@click="toggleShowArchived">
{{ t('deck', 'Show archived cards') }}
</ActionButton>
<ActionButton v-if="compactMode"
icon="icon-toggle-compact-collapsed"
@click="toggleCompactMode" />
@click="toggleCompactMode">
{{ t('deck', 'Toggle compact mode') }}
</ActionButton>
<ActionButton v-else
icon="icon-toggle-compact-expanded"
@click="toggleCompactMode" />
@click="toggleCompactMode">
{{ t('deck', 'Toggle compact mode') }}
</ActionButton>
</Actions>
<!-- FIXME: ActionRouter currently doesn't work as an inline action -->
<Actions :title="t('deck', 'Details')">
Expand Down