feat: Adds the ability to update conversation timeframe automatically (#5253)

* feat: Adds the ability to update conversation timeframe automatically

* Update app/javascript/dashboard/components/ui/TimeAgo.vue

Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com>

Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com>
This commit is contained in:
Sivin Varghese
2022-09-05 16:07:58 +05:30
committed by GitHub
parent 952368948b
commit 8f873a34a2
3 changed files with 121 additions and 1 deletions

View File

@@ -0,0 +1,30 @@
import TimeAgo from 'dashboard/components/ui/TimeAgo';
export default {
title: 'Components/TimeAgo',
component: TimeAgo,
argTypes: {
isAutoRefreshEnabled: {
control: {
type: 'boolean',
},
},
timestamp: {
control: {
type: 'text, date, number',
},
},
},
};
const Template = (args, { argTypes }) => ({
props: Object.keys(argTypes),
components: { TimeAgo },
template: '<time-ago v-bind="$props"></time-ago>',
});
export const TimeAgoView = Template.bind({});
TimeAgoView.args = {
timestamp: 1549843200,
isAutoRefreshEnabled: false,
};