Skip to content

Commit d7e242f

Browse files
committed
Move back as last action 🔧
1 parent e65ae5b commit d7e242f

File tree

1 file changed

+8
-8
lines changed
  • client/components/editor/MainSidebar

1 file changed

+8
-8
lines changed

client/components/editor/MainSidebar/index.vue

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
stateless
99
class="blue-grey lighten-4 actions">
1010
<v-toolbar flat class="transparent">
11-
<v-list class="pa-0">
11+
<v-list>
1212
<v-tooltip
1313
v-for="({ title, icon, action }) in actions"
1414
:key="title"
@@ -52,20 +52,20 @@ export default {
5252
actions() {
5353
const { $router, activity: { courseId } } = this;
5454
const items = [{
55-
title: 'Back',
56-
icon: 'arrow-left',
57-
action: () => $router.push({ name: 'course', params: { courseId } })
58-
}, {
5955
title: 'Preview',
6056
icon: 'eye',
6157
action: () => window.open(this.previewUrl, '_blank')
58+
}, {
59+
title: 'Back',
60+
icon: 'arrow-left',
61+
action: () => $router.push({ name: 'course', params: { courseId } })
6262
}];
6363
if (!this.isAdmin && !this.isCourseAdmin) return items;
64-
return items.concat({
64+
return [{
6565
title: 'Publish',
6666
icon: 'upload',
6767
action: () => this.confirmPublishing()
68-
});
68+
}].concat(items);
6969
},
7070
previewUrl() {
7171
if (!PREVIEW_URL) return;
@@ -80,6 +80,6 @@ export default {
8080

8181
<style lang="scss" scoped>
8282
.actions {
83-
padding-top: 105px;
83+
padding-top: 60px;
8484
}
8585
</style>

0 commit comments

Comments
 (0)