mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-11-03 20:48:07 +00:00 
			
		
		
		
	* 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>
		
			
				
	
	
		
			31 lines
		
	
	
		
			608 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
		
			608 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
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,
 | 
						|
};
 |