Skip to content

Commit

Permalink
Applies PR code review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelurenah committed May 15, 2019
1 parent a78859a commit eb643d0
Showing 1 changed file with 24 additions and 3 deletions.
27 changes: 24 additions & 3 deletions lib/nav/sort-selector.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
<template>
<div class="sort-selector" :class="{ 'is-vertical': vertical }">
<ui-radio class="sort-selector-radio" color="accent" label="Recently Updated" :value="selectedSort" trueValue="updateTime" @input="input" />
<ui-radio class="sort-selector-radio" color="accent" label="Recently Published" :value="selectedSort" trueValue="publishTime" @input="input" />
<ui-radio class="sort-selector-radio" color="accent" label="Recently Scheduled" :value="selectedSort" trueValue="scheduledTime" @input="input" />
<ui-radio
v-for="(sortItem) in sortingValues"
:key="sortItem.trueValue"
class="sort-selector-radio"
color="accent"
:label="sortItem.label"
:value="selectedSort"
:trueValue="sortItem.trueValue"
@input="input"
/>
</div>
</template>

Expand All @@ -18,6 +25,20 @@
},
components: {
UiRadio
},
data() {
return {
sortingValues: [{
label: 'Recently Updated',
trueValue: 'updateTime'
}, {
label: 'Recently Published',
trueValue: 'publishTime'
}, {
label: 'Recently Scheduled',
trueValue: 'scheduledTime'
}]
};
}
};
</script>
Expand Down

0 comments on commit eb643d0

Please sign in to comment.