debian-mirror-gitlab/app/assets/javascripts/batch_comments/mixins/resolved_status.js

16 lines
307 B
JavaScript
Raw Normal View History

2019-09-04 21:01:54 +05:30
import { sprintf, __ } from '~/locale';
2019-07-31 22:56:46 +05:30
export default {
computed: {
resolveButtonTitle() {
2019-09-04 21:01:54 +05:30
let title = __('Mark comment as resolved');
2019-07-31 22:56:46 +05:30
if (this.resolvedBy) {
2019-09-04 21:01:54 +05:30
title = sprintf(__('Resolved by %{name}'), { name: this.resolvedBy.name });
2019-07-31 22:56:46 +05:30
}
return title;
},
},
};