diff options
Diffstat (limited to 'app/assets/javascripts/branches/branch_sort_dropdown.js')
-rw-r--r-- | app/assets/javascripts/branches/branch_sort_dropdown.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app/assets/javascripts/branches/branch_sort_dropdown.js b/app/assets/javascripts/branches/branch_sort_dropdown.js index 9914ce05a95..9ea1331d563 100644 --- a/app/assets/javascripts/branches/branch_sort_dropdown.js +++ b/app/assets/javascripts/branches/branch_sort_dropdown.js @@ -1,8 +1,9 @@ import Vue from 'vue'; +import { parseBoolean } from '~/lib/utils/common_utils'; import SortDropdown from './components/sort_dropdown.vue'; const mountDropdownApp = (el) => { - const { mode, projectBranchesFilteredPath, sortOptions } = el.dataset; + const { projectBranchesFilteredPath, sortOptions, showDropdown, sortedBy } = el.dataset; return new Vue({ el, @@ -11,9 +12,10 @@ const mountDropdownApp = (el) => { SortDropdown, }, provide: { - mode, projectBranchesFilteredPath, sortOptions: JSON.parse(sortOptions), + showDropdown: parseBoolean(showDropdown), + sortedBy, }, render: (createElement) => createElement(SortDropdown), }); |