2019-05-07 08:11:36 -04:00
|
|
|
import { sprintf, __ } from '~/locale';
|
|
|
|
|
2019-05-01 08:58:52 -04:00
|
|
|
export default {
|
|
|
|
computed: {
|
|
|
|
resolveButtonTitle() {
|
2019-05-07 08:11:36 -04:00
|
|
|
let title = __('Mark comment as resolved');
|
2019-05-01 08:58:52 -04:00
|
|
|
|
|
|
|
if (this.resolvedBy) {
|
2019-05-07 08:11:36 -04:00
|
|
|
title = sprintf(__('Resolved by %{name}'), { name: this.resolvedBy.name });
|
2019-05-01 08:58:52 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
return title;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|