Commit 8ca88a53 authored by Phil Hughes's avatar Phil Hughes

Added locked status to status box Vue component

parent 09210823
...@@ -5,12 +5,14 @@ import mrEventHub from '../eventhub'; ...@@ -5,12 +5,14 @@ import mrEventHub from '../eventhub';
const CLASSES = { const CLASSES = {
opened: 'status-box-open', opened: 'status-box-open',
locked: 'status-box-open',
closed: 'status-box-mr-closed', closed: 'status-box-mr-closed',
merged: 'status-box-mr-merged', merged: 'status-box-mr-merged',
}; };
const STATUS = { const STATUS = {
opened: [__('Open'), 'issue-open-m'], opened: [__('Open'), 'issue-open-m'],
locked: [__('Open'), 'issue-open-m'],
closed: [__('Closed'), 'close'], closed: [__('Closed'), 'close'],
merged: [__('Merged'), 'git-merge'], merged: [__('Merged'), 'git-merge'],
}; };
......
---
title: Fixed merge requests locked status not showing
merge_request: 52078
author:
type: fixed
...@@ -17,6 +17,12 @@ const testCases = [ ...@@ -17,6 +17,12 @@ const testCases = [
class: 'status-box-open', class: 'status-box-open',
icon: 'issue-open-m', icon: 'issue-open-m',
}, },
{
name: 'Open',
state: 'locked',
class: 'status-box-open',
icon: 'issue-open-m',
},
{ {
name: 'Closed', name: 'Closed',
state: 'closed', state: 'closed',
......
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