Commit 971caaaf authored by Tom Quirk's avatar Tom Quirk

Add design_management_todo_button feature flag

parent 83fdaaef
......@@ -99,7 +99,11 @@ export default {
updateDiscussionWithOpenForm(id) {
this.discussionWithOpenForm = id;
},
toggleTodo() {
// TODO implement
},
},
showTodoButton: gon.features?.designManagementTodoButton,
resolveCommentsToggleText: s__('DesignManagement|Resolved Comments'),
cookieKey: 'hide_design_resolved_comments_popover',
};
......@@ -108,10 +112,16 @@ export default {
<template>
<div class="image-notes" @click="handleSidebarClick">
<div
v-if="$options.showTodoButton"
class="gl-display-flex gl-justify-content-space-between gl-border-b-1 gl-border-b-gray-100"
>
<span>{{ __('To-Do') }}</span>
<todo-button issuable-type="design" :issuable-id="design.iid" :is-todo="hasPendingTodo" />
<todo-button
issuable-type="design"
:issuable-id="design.iid"
:is-todo="hasPendingTodo"
@click="toggleTodo"
/>
</div>
<h2 class="gl-font-weight-bold gl-mt-0">
{{ issue.title }}
......
......@@ -49,6 +49,7 @@ class Projects::IssuesController < Projects::ApplicationController
push_frontend_feature_flag(:vue_issuable_sidebar, project.group)
push_frontend_feature_flag(:tribute_autocomplete, @project)
push_frontend_feature_flag(:vue_issuables_list, project)
push_frontend_feature_flag(:design_management_todo_button, project)
end
before_action only: :show do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment