Skip to content

Commit d608ba1

Browse files
[pre-commit.ci lite] apply automatic fixes
1 parent d0554b1 commit d608ba1

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

contentcuration/contentcuration/frontend/channelEdit/views/TreeView/TreeViewBase.vue

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,7 @@
259259
<script>
260260
261261
import { mapActions, mapGetters, mapState } from 'vuex';
262+
import useKResponsiveWindow from 'kolibri-design-system/lib/composables/useKResponsiveWindow';
262263
import PreviewDraftChannelModal from '../../components/modals/PreviewDraftChannelModal.vue';
263264
import Clipboard from '../../components/Clipboard';
264265
import SyncResourcesModal from '../sync/SyncResourcesModal';
@@ -281,7 +282,6 @@
281282
import DraggableRegion from 'shared/views/draggable/DraggableRegion';
282283
import { DropEffect } from 'shared/mixins/draggable/constants';
283284
import DraggablePlaceholder from 'shared/views/draggable/DraggablePlaceholder';
284-
import useKResponsiveWindow from 'kolibri-design-system/lib/composables/useKResponsiveWindow';
285285
import { communityChannelsStrings } from 'shared/strings/communityChannelsStrings';
286286
import { commonStrings } from 'shared/strings/commonStrings';
287287
@@ -405,9 +405,7 @@
405405
}
406406
},
407407
showChannelMenu() {
408-
return (
409-
!this.loading && (this.windowIsSmall || this.canManage || this.isPublished)
410-
);
408+
return !this.loading && (this.windowIsSmall || this.canManage || this.isPublished);
411409
},
412410
canShareChannel() {
413411
return this.canManage || this.isPublished;

contentcuration/contentcuration/frontend/channelEdit/views/TreeView/__tests__/TreeViewBase.spec.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ jest.mock('kolibri-design-system/lib/composables/useKResponsiveWindow', () => ({
1515
default: jest.fn(),
1616
}));
1717

18-
const useKResponsiveWindow = require('kolibri-design-system/lib/composables/useKResponsiveWindow').default;
18+
const useKResponsiveWindow =
19+
require('kolibri-design-system/lib/composables/useKResponsiveWindow').default;
1920

2021
const localVue = createLocalVue();
2122
localVue.use(Vuex);
@@ -74,7 +75,7 @@ const initWrapper = ({
7475
windowWidth: windowIsSmall ? 360 : 1024,
7576
windowBreakpoint: windowIsSmall ? 0 : 4,
7677
});
77-
78+
7879
const router = new VueRouter({
7980
routes: [
8081
{

0 commit comments

Comments
 (0)